aboutsummaryrefslogtreecommitdiff
path: root/src/dummy_auth/config.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/dummy_auth/config.clj')
-rw-r--r--src/dummy_auth/config.clj8
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))))