Replies: 1 comment
-
Don't nest at "/". Use fallbacks instead. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Report
Version
Platform
macOS 12.4
Description
Hi, I have a small project where I try to split the routers for static file serving and an api service. These are then nested under the main router.
Starting with axum 0.6.13 (including latest 0.6.18), I get a panic at runtime.
The issue appears to be that i'm specifying a nested fallback handler for '/'.
The code didn't panic with 0.6.12.
The api_router doesn't really need to be there (the panic happens without), i just kept it for completeness to show how i structure my project.
Small repro:
First run:
Second run of the same binary:
The panic seems to switch between those two messages.
Beta Was this translation helpful? Give feedback.
All reactions