Files
cybertron/internal/transport/handler/readiness.go

20 lines
300 B
Go
Raw Normal View History

2024-07-23 14:16:26 +05:30
package handler
import (
"net/http"
"github.com/gin-gonic/gin"
)
type HealthCheckHandler struct{}
func (h *HealthCheckHandler) Readiness(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"message": "pong",
})
}
func NewReadinessHandler() *HealthCheckHandler {
return &HealthCheckHandler{}
}