From 67f01f4a385b5d10f6207263fdbd89bc039d664f Mon Sep 17 00:00:00 2001 From: marcusDenslow Date: Wed, 29 Apr 2026 15:49:26 +0200 Subject: [PATCH] feature: accpet HEAD on /health and /ping for monitoring probes --- api/routes/routes.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/routes/routes.go b/api/routes/routes.go index e57c00c..e0eadce 100644 --- a/api/routes/routes.go +++ b/api/routes/routes.go @@ -52,9 +52,11 @@ func SetupRoutes( }) r.Route("/api/v1", func(r chi.Router) { - // Health + // Health — accept HEAD for cheap probes from monitoring tools. r.Get("/health", healthHandler.GetHealth) + r.Head("/health", healthHandler.GetHealth) r.Get("/ping", healthHandler.Ping) + r.Head("/ping", healthHandler.Ping) // Stripe webhooks — unauthenticated, verified via HMAC signature. // Apply a generous IP rate limit here (Stripe retries from many IPs).