init push

This commit is contained in:
2026-07-16 22:16:45 +07:00
commit 8b068bdb10
1021 changed files with 332816 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
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",
},
})
}