actix / actix/actix-web

Apply middleware(s) to group of routes without prefix

Aperta
#414 13 commenti 13 reazioni 1 assegnatario Rivendicata da @robjtede Vedi su GitHub
A-web C-improvement
Lingua principale
Rust
Stelle
24.8k
Fork
1.9k
Merge medio
23h 10m
PR unite (30g)
26

Descrizione

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 ](https://laravel.com/docs/5.6/routing#route-groups)

eg.
public routes:
/login

private routes:
/dashboard
/users/**
/activities/**
/logout

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.