From 5314290bbec53379372d14234fdc4f28cbe3286a Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 31 Dec 2024 16:23:46 +0100 Subject: Initial commit --- src/dummy_auth/config.clj | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/dummy_auth/config.clj (limited to 'src/dummy_auth/config.clj') 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)))) -- cgit v1.2.3