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/core.clj | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/dummy_auth/core.clj (limited to 'src/dummy_auth/core.clj') 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}))) -- cgit v1.2.3