Files
fm_be/internal/transport/http/handlers/health_handler.go
2026-07-16 22:16:45 +07:00

23 lines
435 B
Go

package handlers
import (
"github.com/gofiber/fiber/v2"
"wucher/internal/transport/http/jsonapi"
"wucher/internal/transport/http/response"
)
type HealthHandler struct{}
func NewHealthHandler() *HealthHandler {
return &HealthHandler{}
}
func (h *HealthHandler) Handle(c *fiber.Ctx) error {
return response.Write(c, fiber.StatusOK, jsonapi.Resource{
Type: "health",
Attributes: map[string]any{
"status": "ok",
},
})
}