1 package health 2 3 import ( 4 "net/http" 5 6 "github.com/gin-gonic/gin" 7 ) 8 9 // NewHealthRoute adds a standard health router to the provided gin.Engine 10 func NewHealthRoute(r *gin.Engine) { 11 r.GET("/healthz", func(c *gin.Context) { 12 c.JSON(http.StatusOK, "UP") 13 }) 14 } 15