Fork me on GitHub
#ring
<
2018-09-28
>
bringe14:09:12

I am trying to achieve a similar goal to the above user, with just compojure and ring. I'm wondering why this code does not only run the verify-token middleware for the GET request, but also runs it for the POST request, even though I specified the middleware just for the GET.

bringe14:09:06

Or should I be implementing per-route logic differently?

ikitommi15:09:55

@brandon.ringe with normal compojure, you can use wrap-routes. Just don't use nginx-clojure with it (https://github.com/nginx-clojure/nginx-clojure/issues/182)