duct 2020-12-14

Hello clojurians.. I have a question about some surprising behaviour in ataraxy, wondering if anyone’s seen it before and/or knows of a workaround. I have a route like

[:get "/path/" thing "/more/stuff"] ^:middleware [:handler/new ^coercer thing]
but both thing and the string "stuff" are being passed to my coercer, which is causing problems.

Is this configured wrong? Or is that kind of route forbidden? Any insight appreciated 🙂

@ggiraldez has left the channel

Answer: It was configured wrong.. there was another route like this matching first:

[:get "/path/" thing "/more/" other-thing] ^:middleware [:handler/new ^coercer thing ^coercer other-thing]

this app has a lot of routes!