Skip to content

The 'Extension' in the middleware is not working #3156

Answered by Turbo87
silent-rain asked this question in Q&A
Discussion options

You must be logged in to vote

I think you would need to req.extensions().get::<Arc<AppState>>, without the Extension<_> wrapper

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@silent-rain
Comment options

Answer selected by silent-rain
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
Converted from issue

This discussion was converted from issue #3155 on January 07, 2025 09:28.