2015-12-08 00:50:03 +00:00
|
|
|
(ns app.conf
|
|
|
|
|
(:require [app.audit-log :refer [audit log]])
|
2015-12-07 05:00:52 +00:00
|
|
|
(:require-macros [mount.core :refer [defstate]]))
|
|
|
|
|
|
|
|
|
|
(defn load-config [path]
|
2015-12-08 00:50:03 +00:00
|
|
|
(audit log :app-conf "loading config from '" path "' (at least pretending)")
|
2015-12-07 05:00:52 +00:00
|
|
|
{:system-a {:uri "ws://echo.websocket.org/"}})
|
|
|
|
|
|
|
|
|
|
(defstate config :start (load-config "resources/config.end"))
|