upda/server/api_handler_health.go
Varakh ceee8ec6b4
All checks were successful
/ build (push) Successful in 3m27s
Minor method renaming
2024-01-25 00:08:26 +01:00

20 lines
337 B
Go

package server
import (
"git.myservermanager.com/varakh/upda/api"
"github.com/gin-gonic/gin"
"net/http"
)
type healthHandler struct {
}
func newHealthHandler() *healthHandler {
return &healthHandler{}
}
func (h *healthHandler) show(c *gin.Context) {
c.JSON(http.StatusOK, api.DataResponse{Data: gin.H{
"healthy": true,
}})
}