Skip to content

Virtual Hosting with Axum #2872

Closed Answered by jplatte
apps4uco asked this question in Q&A
Aug 12, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

You're supplying the state at the wrong place. api_router and website_router's handler need access to it, not app. When using nest, the required state type is automatically propagated to the parent router (if there are no conflicting requirements), but that only works for nest, not this oneshot-based router nesting that you're doing.

Replies: 2 comments 1 reply

Comment options

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

Answer selected by apps4uco
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
2 participants