-
SummaryHow to extract the entire current path in a handler function instead of extracting parameters from the path. axum version0.7.4 |
Beta Was this translation helpful? Give feedback.
Answered by
jplatte
Mar 15, 2024
Replies: 1 comment 1 reply
-
You can add a You can also use different handler functions that just call the same inner function immediately that does the actual work, while passing an extra parameter for route-specific information. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
graphsay
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can add a
http::Uri
parameter to your handler and get the path from that.You can also use different handler functions that just call the same inner function immediately that does the actual work, while passing an extra parameter for route-specific information.