Files
2026-05-09 23:19:19 +05:30

23 lines
437 B
Go

package handler
import (
"net/http"
"github.com/prabhupadasays/spsays-bff/pkg/response"
)
// Health handles the health check endpoint.
type Health struct{}
// NewHealth creates a new Health handler.
func NewHealth() *Health {
return &Health{}
}
// Check returns the server health status.
func (h *Health) Check(w http.ResponseWriter, r *http.Request) {
response.JSON(w, http.StatusOK, map[string]string{
"status": "ok",
})
}