Compare commits

..
2 Commits
Author SHA1 Message Date
mats 47dfee4c77 Merge branch 'main' of git.k6n.net:mats/go-order-manager
Build and Publish / BuildAndDeploy (push) Failing after 54s
2026-06-16 23:29:45 +02:00
mats c6687a5531 url change 2026-06-16 23:21:37 +02:00
+7
View File
@@ -137,7 +137,14 @@ func main() {
}
defer client.Close()
// Routes are served at their CANONICAL public paths under /api/orders, so
// ingress routes straight to this service with no rewrite/strip — you can
// curl the pod or the ingress and the path is identical (deploy/API-ROUTING.md).
// /healthz stays pod-local for probes (never exposed at the edge).
mux := http.NewServeMux()
mux.HandleFunc("GET /healthz", func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
})
mux.HandleFunc("GET /api/orders", func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)