Skip to content

How can you get the matched route in middleware? #1505

Discussion options

You must be logged in to vote

You don't need to use the extractor, you can get the MatchedPath from the request extensions, as shown in the second example in the documentation.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by crunchwrapsupreme666
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants