Add basic webserver skeleton with healthcheck

This commit is contained in:
sneak committed 2026-01-08 02:20:23 -08:00
1 parent 38faf56be0
commit 516853626d
14 files changed
+1129

No files matched your search

+12
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)
}
}