how do i get the current “request method” from middleware?
(defn foo-mw [handler]
(fn [req]
(prn (-> req (ring/get-match) :data))
(handler req)))
the output is at the route level, not the request method level 😕found it thanks to the swagger middleware
(fn [{::r/keys [match] :keys [request-method] :as req}]
(prn (-> match :result request-method :data :foo))