dda-masto-embed/masto-embed/env/dev/clj/masto_embed/dev_middleware.clj

12 lines
331 B
Clojure
Raw Normal View History

(ns masto-embed.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 {:app-namespaces ['masto-embed]})))