foundary-test-1770771180/services/studio-api/internal/api/handlers/health.go
jordan 9f6c9691e6
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add components: app-react/studio-ui, service/studio-api
2026-02-11 00:55:20 +00:00

27 lines
599 B
Go

package handlers
import (
"net/http"
"git.threesix.ai/jordan/foundary-test-1770771180/pkg/httpresponse"
"git.threesix.ai/jordan/foundary-test-1770771180/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": "studio-api",
"status": "healthy",
})
}