upda/server/api_handler_health.go
Varakh d12db38a73
All checks were successful
/ build (push) Successful in 3m8s
Initial commit
2023-12-21 17:04:04 +01:00

20 lines
343 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) showHealth(c *gin.Context) {
c.JSON(http.StatusOK, api.DataResponse{Data: gin.H{
"healthy": true,
}})
}