update deployment
All checks were successful
Build and Publish / BuildAndDeployAmd64 (push) Successful in 33s
Build and Publish / BuildAndDeploy (push) Successful in 2m43s

This commit is contained in:
matst80
2024-11-14 22:58:41 +01:00
parent 69d92716c3
commit 12d695bec3
2 changed files with 36 additions and 0 deletions

View File

@@ -178,6 +178,13 @@ func main() {
w.WriteHeader(http.StatusOK)
w.Write([]byte("ok"))
})
mux.HandleFunc("/push", func(w http.ResponseWriter, r *http.Request) {
log.Print(r.Body)
})
mux.HandleFunc("/version", func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
w.Write([]byte("1.0.0"))
})
sigs := make(chan os.Signal, 1)
done := make(chan bool, 1)