Skip to content

How to create a service for all requests, regardless of path? #99

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

You must be logged in to vote

Nesting a route at "/" should do the trick:

let app = nest("/", route("/", get(handler)));

However this will capture all requests so handles added above it wont be called (routes are matched bottom to top).

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@davidpdrsn
Comment options

@hannobraun
Comment options

@shengsheng
Comment options

@davidpdrsn
Comment options

Answer selected by hannobraun
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