Skip to content

Could you please tell me about the context of the extension? #1571

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

You must be logged in to vote

Can axum Extension manage these two separately?

Yes. Do router.layer(Extension(db)) for the global and from your auth middleware do request.extensions_mut().insert(...).

Replies: 1 comment 1 reply

Comment options

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

Answer selected by myyrakle
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