uris77
12/17/2015 - 8:53 PM

Example of wrapping routes in ring

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"})))))