Compojure uses clout
for routing. From clout
's README
:
Clout supports both keywords and wildcards. Keywords (like
:title
) will match any character but the following:/ . , ; ?
.
By default, clout
treats commas as path segment separators. You can work around that by passing a custom regex to the route. The following would make :tag-names
match any character except /
:
(GET ["/tags/multiple/:tag-names" :tag-names #"[^/]+"] [tag-names] multiple-tags)