Created
December 17, 2015 20:53
-
-
Save uris77/0cb8d36d9887274b43be to your computer and use it in GitHub Desktop.
Example of wrapping routes in ring
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def app-routes | |
(routes | |
#service-routes | |
(wrap-routes #'restricted-service-routes middleware/wrap-auth) | |
(wrap-routes #'home-routes middleware/wrap-csrf) | |
(route/not-found | |
(:body | |
(error-page {:status 404 | |
:title "page not found"}))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment