upda/server/api_handler_health.go

21 lines
337 B
Go
Raw Permalink Normal View History

2023-12-21 16:04:04 +00:00
package server
import (
"git.myservermanager.com/varakh/upda/api"
"github.com/gin-gonic/gin"
"net/http"
)
type healthHandler struct {
}
func newHealthHandler() *healthHandler {
return &healthHandler{}
}
2024-01-24 23:08:26 +00:00
func (h *healthHandler) show(c *gin.Context) {
2023-12-21 16:04:04 +00:00
c.JSON(http.StatusOK, api.DataResponse{Data: gin.H{
"healthy": true,
}})
}