-
I'm writing an HTTP reverse proxy and I found out that code like this doesn't work (since it only routes /):
|
Beta Was this translation helpful? Give feedback.
Answered by
jplatte
Aug 15, 2023
Replies: 1 comment 2 replies
-
You can use https://docs.rs/axum/0.6.20/axum/handler/struct.HandlerService.html |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
More specifically, see this example if you want a single handler to serve all requests, and see this example if you want to only route based on the request method, but not based on the path.