apparently middleware are loaded/run in the reverse order?
This commit is contained in:
parent
9c5577c6d3
commit
f4b00a0484
|
@ -62,6 +62,6 @@
|
||||||
|
|
||||||
(def app (app-handler
|
(def app (app-handler
|
||||||
[auth-routes home-routes posts-routes files-routes rss-routes app-routes]
|
[auth-routes home-routes posts-routes files-routes rss-routes app-routes]
|
||||||
:middleware [wrap-servlet-context-path wrap-exceptions]
|
:middleware [wrap-exceptions wrap-servlet-context-path]
|
||||||
:access-rules [{:redirect "/unauthorized" :rule auth-required}]
|
:access-rules [{:redirect "/unauthorized" :rule auth-required}]
|
||||||
:formats [:json-kw :edn]))
|
:formats [:json-kw :edn]))
|
||||||
|
|
Reference in a new issue