Skip to content

Can I separate my primary middleware from my routes #2440

Answered by davidpdrsn
Naginipython asked this question in Q&A
Discussion options

You must be logged in to vote

You can define a function that takes a router, adds the middleware, and returns the updated router.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Naginipython
Comment options

Answer selected by Naginipython
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants