diff options
Diffstat (limited to 'src/dummy_auth/config.clj')
-rw-r--r-- | src/dummy_auth/config.clj | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dummy_auth/config.clj b/src/dummy_auth/config.clj new file mode 100644 index 0000000..d8e4ce2 --- /dev/null +++ b/src/dummy_auth/config.clj @@ -0,0 +1,8 @@ +(ns dummy-auth.config + (:require [clojure.data.json :as cdjson])) + +(defn read-config [file] + (merge {:port 8080} + (-> file + slurp + (cdjson/read-str :key-fn keyword)))) |