Files
hanko/backend/handler/health.go
2022-06-09 14:36:00 +02:00

21 lines
419 B
Go

package handler
import (
"github.com/labstack/echo/v4"
"net/http"
)
type HealthHandler struct{}
func NewHealthHandler() *HealthHandler {
return &HealthHandler{}
}
func (handler *HealthHandler) Ready(c echo.Context) error {
return c.JSON(http.StatusOK, map[string]bool{"ready": true})
}
func (handler *HealthHandler) Alive(c echo.Context) error {
return c.JSON(http.StatusOK, map[string]bool{"alive": true})
}