-
Unable to nest handler on same routing path in axum. Is there a way to solve this? /path?id=abc |
Beta Was this translation helpful? Give feedback.
Answered by
jplatte
Aug 21, 2023
Replies: 1 comment
-
axum only does routing based on the path, and method. Query parameters should be handled with the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
davidpdrsn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
axum only does routing based on the path, and method. Query parameters should be handled with the
Query
extractor; you can internally make your handler defer the actual work to more fine-grained functions based on which parameters are set.