duct

Kira McLean 2020-12-15T05:05:35.054500Z

Relatedly, is it possible to prioritize routes in ataraxy? Or to force it to not treat certain hard-coded strings as route params? E.g. Is it possible to have two routes like:

[:get "/thing/new"] {,,,}
[:get "/thing/" id] {,,,}
? It seems to always match the second route for me, treating “new” like an id, which obviously causes problems. It seems like this should be doable, but I somehow either haven’t run into it yet or forgot how I did it..

erwinrooijakkers 2020-12-23T13:39:38.054800Z

I don’t know. I do know Ataraxy has some behaviour that is unintuitive to me. For example multiple middlewares are ordered reverse alphabetically by their key. It would be more logical if middlewares were specified by a vector (since they have order). duct.reitit works better for us. We use a fork so it is published to clojars: https://github.com/mediquest-nl/duct-reitit

erwinrooijakkers 2020-12-23T13:42:34.056Z

> Reitit: > > @bohdan.mikhail the routes are matched in order they are introduced, so you can put the most important first. Either manually or programmatically. Hope this helps