fix: resolves #115
This commit is contained in:
15
server/handlers/health.go
Normal file
15
server/handlers/health.go
Normal file
@@ -0,0 +1,15 @@
|
||||
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")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user