How can I do a wildcard route? #464
Answered
by
kitsonk
justinmchase
asked this question in
Q&A
-
Seems to not work, how can I specify a route which gets all requests under |
Beta Was this translation helpful? Give feedback.
Answered by
kitsonk
Jan 31, 2022
Replies: 1 comment 1 reply
-
|
@justinmchase it uses path_to_regex underneath, so anything that works there would work here. There is also an online tester for it. For your specific use case you want:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
justinmchase
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@justinmchase it uses path_to_regex underneath, so anything that works there would work here. There is also an online tester for it.
For your specific use case you want:
/asset/:id+or/asset/:id*