We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
page("/foo/:key", server)
only matches one word keys like foo/bar. How do I match /foo/bar/baz?
foo/bar
/foo/bar/baz
The text was updated successfully, but these errors were encountered:
For posterity:
There's not a function for that. You would have to write your own middleware to do so, but that's not hard :)
You could fairly easily come up with some syntax and write custom middleware with the stuff in src/routing.jl.
src/routing.jl
Alternatively, you can write something custom that handles paths however you like:
branch(req -> startswith(req[:path], "/foo/"), req -> respond("The rest of the path is $(req[:path][5:end])") )
Sorry, something went wrong.
Oh, lol, you probably wrote this and know that well. I'll leave my comment in case users have the same question.
No branches or pull requests
only matches one word keys like
foo/bar
. How do I match/foo/bar/baz
?The text was updated successfully, but these errors were encountered: