From c6687a55313f8a371b57a32dad721e64f43595a0 Mon Sep 17 00:00:00 2001 From: matst80 Date: Tue, 16 Jun 2026 23:21:37 +0200 Subject: [PATCH] url change --- main.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.go b/main.go index 667a6c0..aaed3de 100644 --- a/main.go +++ b/main.go @@ -138,7 +138,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)