fix(upload): error handling on http server
All checks were successful
build / Go-Build (push) Successful in 26s

This commit is contained in:
2026-02-03 00:44:23 +01:00
parent 9574c2d0bc
commit a87cdf18dc

View File

@@ -23,7 +23,10 @@ func PrepareHTTP() {
func Start() { func Start() {
log.Println("Starting http server on :3000") log.Println("Starting http server on :3000")
http.ListenAndServe(":3000", nil) if err := http.ListenAndServe(":3000", nil); err != nil {
panic(err)
}
} }
func registerAuthorized(path string, f func(w http.ResponseWriter, r *http.Request)) { func registerAuthorized(path string, f func(w http.ResponseWriter, r *http.Request)) {