Improve matching '/' path.
tmikus opened this issue · comments
Hey @MauroJr,
Great library! Just tried using it in my fun Christmas project, and all went smoothly. I made some TypeScript typings for it as well, so once I get a moment I will raise a PR to add it to your library.
One problem I found is with some special handling for a Route('/')
, which seems to match everything, instead of just the '/' path.
Is there any particular reason why the '/' route translates into a '*' matcher, or could this be changed to a Regex similar to /\/(?:$|\?.*$)/
?