aboutsummaryrefslogtreecommitdiff
path: root/env/dev/clj/queue_api/env.clj
diff options
context:
space:
mode:
Diffstat (limited to 'env/dev/clj/queue_api/env.clj')
-rw-r--r--env/dev/clj/queue_api/env.clj14
1 files changed, 14 insertions, 0 deletions
diff --git a/env/dev/clj/queue_api/env.clj b/env/dev/clj/queue_api/env.clj
new file mode 100644
index 0000000..1f31ba5
--- /dev/null
+++ b/env/dev/clj/queue_api/env.clj
@@ -0,0 +1,14 @@
+(ns queue-api.env
+ (:require [selmer.parser :as parser]
+ [clojure.tools.logging :as log]
+ [queue-api.dev-middleware :refer [wrap-dev]]))
+
+(def defaults
+ {:init
+ (fn []
+ (parser/cache-off!)
+ (log/info "\n-=[queue-api started successfully using the development profile]=-"))
+ :stop
+ (fn []
+ (log/info "\n-=[queue-api has shut down successfully]=-"))
+ :middleware wrap-dev})