caesar-rocks / core

🏛 Caesar is a Go web framework, designed for productivity.
https://caesar.rocks
MIT License
119 stars 3 forks source link

Add router.Group util. #3

Open alexisbz opened 5 months ago

alexisbz commented 5 months ago

Context

A Caesar application rapidly gets tons of related features, sometimes even sharing the same middleware.

It would be great have some Group method on the Router struct, which could register routes, and even apply some middleware to all the subroutes.