martenframework / marten

The pragmatic web framework.
https://martenframework.com
MIT License
396 stars 21 forks source link

Attach middleware to route groups #186

Closed notramo closed 4 months ago

notramo commented 4 months ago

For example, all admin: routes could have a middleware that checks user role, and all api: routes could have one that checks that accepted content-type is JSON.