Add /healthz endpoint via mcdsl/health

Database ping health check at /healthz, no auth required. Seal state
is still reported via the existing /v1/status endpoint.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-26 14:18:09 -07:00
parent c5dcb63165
commit d308db8598
4 changed files with 11 additions and 4 deletions

View File

@@ -11,6 +11,7 @@ import (
"git.wntrmute.dev/kyle/mcdsl/health"
"git.wntrmute.dev/kyle/metacrypt/internal/audit"
"git.wntrmute.dev/kyle/metacrypt/internal/auth"
"git.wntrmute.dev/kyle/metacrypt/internal/barrier"
@@ -23,6 +24,9 @@ import (
)
func (s *Server) registerRoutes(r chi.Router) {
// Health check (database ping, no auth required).
r.Get("/healthz", health.Handler(s.database))
// REST API routes — web UI served by metacrypt-web.
r.Get("/v1/status", s.handleStatus)
r.Post("/v1/init", s.handleInit)