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.
Or should I be implementing per-route logic differently?
@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)
Thanks @ikitommi