fix custom 404 handler throwing errors of its own

This commit is contained in:
Gered 2014-03-23 16:55:06 -04:00
parent 4690adc3cb
commit d8a2479841

View file

@ -19,11 +19,7 @@
(defroutes app-routes
(route/resources "/")
(wrap-head
(fn [request]
{:status 404
:headers {"Content-Type" "text/html"}
:body (layout/render "notfound.html")})))
(route/not-found (layout/render "notfound.html")))
(defn init []
(timbre/set-config!