You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can define a path without naming the parameters e.g. /api/* or /api/:/something
The value at that position is parsed and then stored in the parameters and can be retrieved using an empty string match.params[""]
Conceptually unnamed parameters makes sense where you want to match the path but don't need a capture group for it - however it should not store the value in the map.
The text was updated successfully, but these errors were encountered:
gameldar
changed the title
Empty path ends up in the parameters
Unamed parameters end up in the parameter map
Aug 13, 2019
You can define a path without naming the parameters e.g.
/api/*
or/api/:/something
The value at that position is parsed and then stored in the parameters and can be retrieved using an empty string
match.params[""]
Conceptually unnamed parameters makes sense where you want to match the path but don't need a capture group for it - however it should not store the value in the map.
The text was updated successfully, but these errors were encountered: