clojurecup2015-mailhead/env/dev/clj/mailhead/dev_middleware.clj

11 lines
305 B
Clojure
Raw Normal View History

2015-12-05 01:03:29 +01:00
(ns mailhead.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))