Kasper Juul Hermansen
50228f0aff
Co-authored-by: kjuulh <contact@kjuulh.io> Reviewed-on: kjuulh/kraken#1
17 lines
256 B
Go
17 lines
256 B
Go
package api
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func HealthRoute(app *gin.Engine) {
|
|
healthRoute := app.Group("/health")
|
|
healthRoute.GET("/ready", func(c *gin.Context) {
|
|
c.JSON(http.StatusOK, gin.H{
|
|
"message": "healthy",
|
|
})
|
|
})
|
|
}
|