Skip to content
Discussion options

You must be logged in to vote

Router::new().layer(odata_layer); only adds the layer to the fallback which is then discarded when you nest the router. Axum 0.5 doesn't support nested fallbacks.

A workaround is to box the nested service Router::new().layer(odata_layer).boxed_clone() using ServiceExt::boxed_clone.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by bryanburgers
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 #1245 on August 11, 2022 06:25.