feat: http add /healthz alias; ignore local .gocache

This commit is contained in:
Benjamin
2025-09-26 22:18:26 +02:00
parent 76c2e8de4e
commit ef49dca8cd
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -5,8 +5,11 @@ AGENTS.md
.idea
.env
# Local Go build cache
.gocache/
docker-compose.local.yml
docker-compose.prod.yml
client_secret*.json
community
migrate
migrate
+2
View File
@@ -160,6 +160,8 @@ func setupRouter(
router.Get("/oembed", oembedHandler.HandleOEmbed)
router.Get("/embed", oembedHandler.HandleEmbedView)
router.Get("/health", healthHandler.HandleHealth)
// Alias to match documentation and install script
router.Get("/healthz", healthHandler.HandleHealth)
router.Get("/sign", authMiddleware.RequireAuth(signatureHandlers.HandleSignGET))
router.Post("/sign", authMiddleware.RequireAuth(signatureHandlers.HandleSignPOST))