We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.6.1
Linux 5.19.0-26-generic #27-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 23 20:44:15 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Creating a router with :
let mut router = Router::new() .route( "/*path", ....
Used to match an empty path ("/"), but with axum 0.6 it does not work anymore...
The text was updated successfully, but these errors were encountered:
Wildcards not matching just a slash is an intentional change. From the changelog:
The request /foo/ no longer matches /foo/*rest. If you want to match /foo/ you have to add a route specifically for that (#1086)
You have to add routes for both / and /*path or just use Router::fallback to catch everything.
/
/*path
Router::fallback
Sorry, something went wrong.
Ok, thanks for the quick answer, fallback does work well !
No branches or pull requests
Bug Report
Version
v0.6.1
Platform
Linux 5.19.0-26-generic #27-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 23 20:44:15 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Description
Creating a router with :
Used to match an empty path ("/"), but with axum 0.6 it does not work anymore...
The text was updated successfully, but these errors were encountered: