package misc import "github.com/gofiber/fiber/v2" // Create a handler. Leave this empty, as we have no domains nor use-cases. type MiscHandler struct{} // Represents a new handler. func NewMiscHandler(miscRoute fiber.Router) { handler := &MiscHandler{} // Declare routing. miscRoute.Get("", handler.healthCheck) } // Check for the health of the API. func (h *MiscHandler) healthCheck(c *fiber.Ctx) error { return c.Status(fiber.StatusOK).JSON(&fiber.Map{ "status": "success", "message": "Hello World!", }) }