Conditional Middleware #216
MasteryOfMastering
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
This seems to work. Maybe add a section on the website under middleware as custom middleware?
|
Beta Was this translation helpful? Give feedback.
0 replies
-
This seems to be a relatively common functional requirement, so I added https://github.com/salvo-rs/salvo/blob/main/crates/core/src/routing/router.rs#L223-L231 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to have conditional middleware prior to executing the main handler, something like request.next?
Beta Was this translation helpful? Give feedback.
All reactions