From 81f03c0b449bec1fa60cf2936bfc3f66a5ad58c1 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Tue, 17 Jan 2023 13:17:40 +0100 Subject: chore: Rename project --- src/backend/tau/http.clj | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 src/backend/tau/http.clj (limited to 'src/backend/tau/http.clj') diff --git a/src/backend/tau/http.clj b/src/backend/tau/http.clj deleted file mode 100644 index cbb5896..0000000 --- a/src/backend/tau/http.clj +++ /dev/null @@ -1,24 +0,0 @@ -(ns tau.http - (:require - [org.httpkit.server :refer [run-server]] - [tau.router :as router]) - (:import - tau.DownloaderImpl - org.schabi.newpipe.extractor.NewPipe - org.schabi.newpipe.extractor.localization.Localization)) - -(defonce server (atom nil)) - -(defn start-server! - ([] - (start-server! 3000)) - ([port] - (NewPipe/init (DownloaderImpl/init) (Localization. "en" "GB")) - (reset! server (run-server #'router/app {:port port})) - (println "Server running in port" port))) - -(defn stop-server! - [] - (when @server - (@server :timeout 100) - (reset! server nil))) -- cgit v1.2.3