24 lines
427 B
Go
24 lines
427 B
Go
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
"high-loud-apps-labs/internal/httpapi/dto"
|
|
)
|
|
|
|
type HealthHandler struct{}
|
|
|
|
func NewHealthHandler() *HealthHandler {
|
|
return &HealthHandler{}
|
|
}
|
|
|
|
func (h *HealthHandler) Live(c *gin.Context) {
|
|
c.JSON(http.StatusOK, dto.HealthResponse{Status: "ok"})
|
|
}
|
|
|
|
func (h *HealthHandler) Ready(c *gin.Context) {
|
|
c.JSON(http.StatusOK, dto.HealthResponse{Status: "ok"})
|
|
}
|