Skip to content

Routing doesn't work for two non-overlapping routes #2332

Answered by robjtede
Thomasdezeeuw asked this question in Q&A
Discussion options

You must be logged in to vote

Routes are matches in the order they are declared, so you'll always match the {uuid} route in this case.

from web::resource docs:

By default, each segment matches the regular expression [^{}/]+.

You can also specify a custom regex in the form {identifier:regex}:

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@robjtede
Comment options

@Thomasdezeeuw
Comment options

@robjtede
Comment options

Comment options

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

@robjtede
Comment options

@Thomasdezeeuw
Comment options

@robjtede
Comment options

Answer selected by Thomasdezeeuw
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
Converted from issue

This discussion was converted from issue #2331 on July 14, 2021 15:13.