package handlers

import (
	"net/http"

	"{{GO_MODULE}}/pkg/httpresponse"
	"{{GO_MODULE}}/pkg/logging"
)

// Health handles health check endpoints.
type Health struct {
	logger *logging.Logger
}

// NewHealth creates a new Health handler.
func NewHealth(logger *logging.Logger) *Health {
	return &Health{logger: logger}
}

// Check returns the service health status.
func (h *Health) Check(w http.ResponseWriter, r *http.Request) {
	httpresponse.OK(w, r, map[string]string{
		"service": "{{COMPONENT_NAME}}",
		"status":  "healthy",
	})
}
