Skip to content

Why axum middleware does not work with "/" route ? #2606

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

You must be logged in to vote

Ah sorry I misread your code. Regardless middleware does work on “/“ so must be something else the rejects the request.

Have you tried simplifying your code until works? Perhaps try removing the Session extractor.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@HosMercury
Comment options

@davidpdrsn
Comment options

Answer selected by HosMercury
@HosMercury
Comment options

@HosMercury
Comment options

@HosMercury
Comment options

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