Files
ipinfo/utils/health/health.go
T
2025-02-28 18:29:27 +00:00

16 lines
293 B
Go

package utils
import (
"net/http"
)
// Returns a simple health check handler
func HealthCheck() http.Handler {
mux := http.NewServeMux()
mux.HandleFunc("/health", func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
w.Write([]byte("Healthy"))
})
return mux
}