Aditya Siregar bc64eb20ea add dukcapil
2026-05-07 04:01:32 +07:00

24 lines
409 B
Go

package handler
import (
"go-backend-template/internal/logger"
"net/http"
"github.com/gin-gonic/gin"
)
type HealthHandler struct {
}
func NewHealthHandler() *HealthHandler {
return &HealthHandler{}
}
func (hh *HealthHandler) HealthCheck(c *gin.Context) {
log := logger.NewContextLogger(c, "healthCheck")
log.Info("Health Check success")
c.JSON(http.StatusOK, gin.H{
"status": "Healthy!!",
})
}