9 lines
330 B
Clojure
9 lines
330 B
Clojure
(ns app.conf
|
|
(:require [app.audit-log :refer [audit log]])
|
|
(:require-macros [mount.core :refer [defstate]]))
|
|
|
|
(defn load-config [path]
|
|
(audit log :app-conf "loading config from '" path "' (at least pretending)")
|
|
{:system-a {:uri "ws://echo.websocket.org/"}})
|
|
|
|
(defstate config :start (load-config "resources/config.end"))
|