aboutsummaryrefslogtreecommitdiff
path: root/env/dev/clj/queue_api/dev_middleware.clj
diff options
context:
space:
mode:
Diffstat (limited to 'env/dev/clj/queue_api/dev_middleware.clj')
-rw-r--r--env/dev/clj/queue_api/dev_middleware.clj10
1 files changed, 10 insertions, 0 deletions
diff --git a/env/dev/clj/queue_api/dev_middleware.clj b/env/dev/clj/queue_api/dev_middleware.clj
new file mode 100644
index 0000000..ece7a25
--- /dev/null
+++ b/env/dev/clj/queue_api/dev_middleware.clj
@@ -0,0 +1,10 @@
+(ns queue-api.dev-middleware
+ (:require [ring.middleware.reload :refer [wrap-reload]]
+ [selmer.middleware :refer [wrap-error-page]]
+ [prone.middleware :refer [wrap-exceptions]]))
+
+(defn wrap-dev [handler]
+ (-> handler
+ wrap-reload
+ wrap-error-page
+ wrap-exceptions))