3 ms·
The two routes `/foo/bar` and `/foo/*` are not ambiguous and would be allowed by the router
by superb_dev 3y ago
The two routes `/foo/bar` and `/foo/*` are not ambiguous and would be allowed by the router
- danpalmer 3y agoAre they? It seems that the latter matches the former. i.e. for the path `/foo/bar` there are 2 matching routes. One must take precedence, but this router doesn't appear to allow that. This may just be a syntax thing, I was being loose with syntax, and meant that the `*` would match anything for the purposes of this example.
- pipe01 3y agoIt does allow that, the one without wildcards is more specific so it'll pick that one