Skip to content

How to register a router with Host matcher? #2155

Answered by davidpdrsn
yhyzgn asked this question in Q&A
Discussion options

You must be logged in to vote

Indeed. Axum only supports routing by path or method. You can write a single catch all handler and check the host name yourself.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yhyzgn
Comment options

Answer selected by yhyzgn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants