authorizer/server/handlers/health.go

16 lines
279 B
Go
Raw Normal View History

2022-02-05 04:39:25 +00:00
package handlers
import (
"net/http"
"github.com/gin-gonic/gin"
)
// HealthHandler is the handler for /health route.
// It states if server is in healthy state or not
func HealthHandler() gin.HandlerFunc {
return func(c *gin.Context) {
c.String(http.StatusOK, "OK")
}
}