rest
support in dynamic urls
#2055
amitu
started this conversation in
Ideas & RFCs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In dynamic URLs we support basic types like string, integer etc, but they only capture one "part" of the path, part being what is delimited by
/
.We want to be able to support "rest of the url" as well, e.g.:
Here we are creating a new "virtual type"
rest
, which can be used for rest of the URL, and will be assigned toname
in this case.Note that:
Are different, if the URL ends with
/
, and a pattern is defined that ends with slash (before without slash), then that will be captured, elserest
will capture both urls ending with or without slash.Beta Was this translation helpful? Give feedback.
All reactions