Apply middleware(s) to group of routes without prefix
Author: sadika9Created Jul 23, 2018Updated Sep 8, 2026
LabelsC-improvementA-web
I have set of routes that need to pass through group of middlewares. I tried to use route scopes but it requires prefix to be applied as well. I'm looking for feature like in laravel route groups
eg. public routes: /login
private routes: /dashboard /users/** /activities/** /logout
Source: actix/actix-web