fix custom 404 handler throwing errors of its own
This commit is contained in:
parent
4690adc3cb
commit
d8a2479841
|
@ -19,11 +19,7 @@
|
||||||
|
|
||||||
(defroutes app-routes
|
(defroutes app-routes
|
||||||
(route/resources "/")
|
(route/resources "/")
|
||||||
(wrap-head
|
(route/not-found (layout/render "notfound.html")))
|
||||||
(fn [request]
|
|
||||||
{:status 404
|
|
||||||
:headers {"Content-Type" "text/html"}
|
|
||||||
:body (layout/render "notfound.html")})))
|
|
||||||
|
|
||||||
(defn init []
|
(defn init []
|
||||||
(timbre/set-config!
|
(timbre/set-config!
|
||||||
|
|
Reference in a new issue