Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(:require
[<<ns-name>>.web.middleware.core :as middleware]
[integrant.core :as ig]
[ring.util.http-response :as http-response]
[ring.util.response :as response]
[reitit.ring :as ring]
[reitit.swagger-ui :as swagger-ui]))

Expand All @@ -21,13 +21,13 @@
(ring/create-default-handler
{:not-found
(constantly (-> {:status 404, :body "Page not found"}
(http-response/content-type "text/plain")))
(response/content-type "text/plain")))
:method-not-allowed
(constantly (-> {:status 405, :body "Not allowed"}
(http-response/content-type "text/plain")))
(response/content-type "text/plain")))
:not-acceptable
(constantly (-> {:status 406, :body "Not acceptable"}
(http-response/content-type "text/plain")))}))
(response/content-type "text/plain")))}))
{:middleware [(middleware/wrap-base opts)]}))

(defmethod ig/init-key :router/routes
Expand Down
Loading