Skip to content

Commit

Permalink
other way to handle 404
Browse files Browse the repository at this point in the history
  • Loading branch information
fterrier committed Feb 12, 2015
1 parent aecda81 commit fbcf760
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/clj/tramboard_clj/core/handler.clj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
(defroutes app-routes
(wrap-routes (GET "/" [] (index-page)) wrap-cache)
(wrap-routes (route/resources "/public") wrap-cache)
(route/not-found "Not Found"))
(ANY "/*" [] (ring.util.response/not-found "Nothing here!"))
(route/not-found "Fallback, this shows up as error."))

(def site
(wrap-routes app-routes wrap-defaults (assoc site-defaults :cookies false :session false)))
Expand Down

0 comments on commit fbcf760

Please sign in to comment.