Add basic webserver skeleton with healthcheck

This commit is contained in:
2026-01-08 02:20:23 -08:00
parent 38faf56be0
commit 516853626d
14 changed files with 1129 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
package handlers
import (
"net/http"
)
func (s *Handlers) HandleHealthCheck() http.HandlerFunc {
return func(w http.ResponseWriter, _ *http.Request) {
resp := s.hc.Healthcheck()
s.respondJSON(w, resp, http.StatusOK)
}
}