Closed nico-incubiq closed 2 weeks ago
This PR adds the ability to register middlewares at a specific Scope using a fluent API, similar to the one of actix-web's Scope struct.
Scope
Before:
utoipa_actix_web::scope( actix_web::web::scope("/admin") .wrap(Authenticated::new("/admin")) ) .service(admin_dashboard)
After:
utoipa_actix_web::scope("/admin") .wrap(Authenticated::new("/admin")) .service(admin_dashboard)
Thanks :) brilliant project btw!
This PR adds the ability to register middlewares at a specific
Scope
using a fluent API, similar to the one of actix-web'sScope
struct.Before:
After: