Closed NPCRUS closed 1 month ago
You're missing / endOfSegments
at the end of your route patterns (should be root / endOfSegments
, root / "auth" / endOfSegments
, etc.), so the first route pattern, root
, ends up matching all URLs under /
, including "/auth".
I know, this is not exactly ergonomic. The incorrect pattern looks like what you'd expect the correct pattern could look like.
I've been wanting to change the default behaviour so that you wouldn't need / endOfSegments
to match the path segments exactly, but could use / restSegments
if you wanted to match and capture the remaining path segments. Haven't had the time, so far. This needs a change in URL-DSL.
Thanks for clarification, it's a miss on my side then. Thank you!
I have a following very simple router setup:
after initialization I have a simple printline:
which returns
Some(Main)
Am I doing something wrong or is it a bug?