aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tau/http.clj
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2023-01-17 13:17:40 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2023-01-17 13:17:40 +0100
commit81f03c0b449bec1fa60cf2936bfc3f66a5ad58c1 (patch)
treea2a7aa01f61dd71b511dd3729a9f4b28c35b531f /src/backend/tau/http.clj
parent5e995881dd0c431ae63b1a50c2d03e59962241f1 (diff)
chore: Rename project
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)))