How to register a router with Host matcher? #2155
-
It seems that matching an url with route's path only, but sometimes we need match the |
Beta Was this translation helpful? Give feedback.
Answered by
davidpdrsn
Aug 6, 2023
Replies: 1 comment 1 reply
-
Indeed. Axum only supports routing by path or method. You can write a single catch all handler and check the host name yourself. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
yhyzgn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Indeed. Axum only supports routing by path or method. You can write a single catch all handler and check the host name yourself.