Skip to content

How to route all requests under a port to a handler #2175

Answered by jplatte
monadbobo asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jplatte
Comment options

Answer selected by monadbobo
@jplatte
Comment options

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