Fork me on GitHub
#reitit
<
2019-07-21
>
joshkh15:07:23

hi folks! is it possible to match on a route where a path parameter contains /'s? for example, a single ls route that can accept something like home/users/sparky as its path parameter.

["ls/{path}" {:name       :route/ls
              :parameters {:path string?}}]
i used to do this with bidi and a regular expression to greedily capture everything after ls/

joshkh15:07:44

oh jeez, it's right in the docs. don't know how i missed that. ["/public/*path"]

ikitommi17:07:55

also ["/public/{*path}"] works, if one favours the bracket-syntax.