test download command

This commit is contained in:
Watn3y 2023-04-21 07:35:42 +02:00
parent 33d529ad51
commit 24bbd8926c
9 changed files with 219 additions and 2 deletions

17
webserver/webserver.go Normal file
View file

@ -0,0 +1,17 @@
package webserver
import (
"log"
"net/http"
)
func RunWeb() {
fs := http.FileServer(http.Dir("./videos"))
http.Handle("/", fs)
log.Print("Listening on :3556...")
err := http.ListenAndServe(":3556", nil)
if err != nil {
log.Fatal(err)
}
}