aboutsummaryrefslogtreecommitdiff
path: root/src/dummy_auth/core.clj
diff options
context:
space:
mode:
authorTim <contact@bytim.eu>2024-12-31 16:23:46 +0100
committerTim <contact@bytim.eu>2024-12-31 16:23:46 +0100
commit5314290bbec53379372d14234fdc4f28cbe3286a (patch)
tree32bcb32e394873692d16ff7d2c436a71acf2f6b3 /src/dummy_auth/core.clj
downloaddummy-auth-5314290bbec53379372d14234fdc4f28cbe3286a.tar.xz
dummy-auth-5314290bbec53379372d14234fdc4f28cbe3286a.zip
Initial commit
Diffstat (limited to 'src/dummy_auth/core.clj')
-rw-r--r--src/dummy_auth/core.clj11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dummy_auth/core.clj b/src/dummy_auth/core.clj
new file mode 100644
index 0000000..3567d6b
--- /dev/null
+++ b/src/dummy_auth/core.clj
@@ -0,0 +1,11 @@
+(ns dummy-auth.core
+ (:require [org.httpkit.server :as http-server]
+ [dummy-auth.config :as dconfig]
+ [dummy-auth.routes :as droutes])
+ (:gen-class))
+
+(defn -main [& args]
+ (let [config (dconfig/read-config (or (first args) "./config.json"))
+ port (:port config)]
+ (println (str "Starting http server on port " port "..."))
+ (http-server/run-server droutes/ring-handler {:port port})))