package handlers

import (
	"github.com/gofiber/fiber/v2"
	"github.com/sentinela-go/internal/db"
)

type Handler struct {
	db *db.DB
}

func New(database *db.DB) *Handler {
	return &Handler{db: database}
}

func (h *Handler) Health(c *fiber.Ctx) error {
	return c.JSON(fiber.Map{
		"status":  "ok",
		"service": "sentinela",
	})
}
