Optional parts in route
alokrajiv opened this issue · 0 comments
alokrajiv commented
In FasteRoute I used to use regex /[home/]
to match both /
and /home/
for a particular route.
Extract from FasteRoute Readme.md:
Furthermore parts of the route enclosed in [...] are considered optional, so that /foo[bar] will match both /foo and /foobar. Optional parts are only supported in a trailing position, not in the middle of a route.
Is there a similar functionality in phroute?