Example of wrapping routes in ring
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"})))))