Skip to content

Commit

Permalink
0.9.1 Explicitly handle 404 Not Found
Browse files Browse the repository at this point in the history
  • Loading branch information
seancorfield committed Nov 12, 2016
1 parent f0f39f2 commit 4185f82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/framework/one.clj
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,8 @@
(ANY "/" [] (fw1 (keyword section)))
(ANY "/:item" [item] (fw1 (keyword section item)))
(ANY "/:item/:id{[0-9]+}" [item id :<< as-int]
(fw1 (keyword section item))))))
(fw1 (keyword section item))))
(route/not-found "Not Found")))

;; As of 2016/10/27, these are the two sets of options for the web servers that
;; we support -- note that only :port is common between the two of them.
Expand Down

0 comments on commit 4185f82

Please sign in to comment.