Hi there!
Thanks for reaching out on the mailing list.
As a general rule, it's often encourage that people use query-string args instead of path-params where possible. That aside, let's get to the issue at hand.
Pedestal ships with a few different routers that make different trade-offs (features, evaluation order, performance). Pedestal defaults to a tree-based router when possible, but this has a feature restriction - path-param wildcard values can't also have "hard-coded" values in the route tree (eg: You can't have `:version` and `submit` at the same level in the path).
However, you can use Pedestal's linear router, which allows you to have the routes setup this way.
In your service map, you can set the :io.pedestal.http/router to :linear-search to change to this router.
I hope this helps!
Cheers,
Paul