Consider the routes:
["/:user-id/orders"]
["/bulk/:bulk-id"]
Both would match the path /bulk/orders
, with the :user-id
and :bulk-id
path parameters set to bulk
and orders
respectively.
Presumably if you wanted these particular routes you could configure them to ignore conflicts and use path validation to only allow integers for those path parameters, which effectively removes the conflict. But I haven't used Reitit (just playing with it for potential use in a project), so take that with a pinch of salt.awesome thank you for the explanation cris!