19 lines
297 B
Go
19 lines
297 B
Go
|
|
package handler
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/gin-gonic/gin"
|
||
|
|
"github.com/luxsin/app-api/internal/response"
|
||
|
|
)
|
||
|
|
|
||
|
|
type HealthHandler struct{}
|
||
|
|
|
||
|
|
func NewHealthHandler() *HealthHandler {
|
||
|
|
return &HealthHandler{}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (h *HealthHandler) Check(c *gin.Context) {
|
||
|
|
response.OK(c, gin.H{
|
||
|
|
"status": "up",
|
||
|
|
})
|
||
|
|
}
|