Closed Taik closed 8 years ago
No there is not. The group feature is a syntax sugar. Behind the scene, all routes are added to m
with "/admin" prefixed. The pros is that groups have no performance penalties, the cons is that you can't apply a middleware to the group.
Hi,
Firstly, thanks for the awesome package!
I'm currently evaluating xhandler/xmux, and I can't seem to find a way to wrap a
Group
instance with middleware.My use case would be something like:
Is there a way for me to remove the redundant AuthMiddleware on each handler and associate it with
g
so it is evaluated for every route ong
?Thanks!