aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tau/http.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/tau/http.clj')
-rw-r--r--src/backend/tau/http.clj24
1 files changed, 0 insertions, 24 deletions
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)))