Files
ep-ee2e-phone-calls/backend/cmd/push/main.go
T
2026-11-16 20:49:40 +02:00

22 lines
566 B
Go

package main
import (
"log"
"net/http"
"time"
)
func main() {
mux := http.NewServeMux()
mux.HandleFunc("GET /healthz", func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
_, _ = w.Write([]byte("ok\n"))
})
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
http.Error(w, "push dispatcher not implemented", http.StatusNotImplemented)
})
srv := &http.Server{Addr: ":8083", Handler: mux, ReadHeaderTimeout: 5 * time.Second}
log.Printf("push service listening on %s", srv.Addr)
log.Fatal(srv.ListenAndServe())
}