Wrapping resource handlers with bidi
问题 How can I use friend and bidi to wrap resource handlers? I've succeeded in getting oAuth to authenticate a route: (defn auth-handler [request] (friend/authorize #{::user} {:status 200 :body "a secret"})) (def routes ["/" {true auth-handler}]) (def app (make-handler routes)) (web/run-dmc (-> app var (friend/authenticate {:allow-anon? true :workflows [(oauth/workflow {:client-config client-config :uri-config uri-config :credential-fn credential-fn})]}) (wrap-resource "public") (wrap-defaults