mirror of
https://gitee.com/shikong-sk/golang-study
synced 2025-05-22 09:58:22 +08:00
14 lines
182 B
Go
14 lines
182 B
Go
package health
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func Health(g *gin.RouterGroup) {
|
|
g.GET("/health", func(c *gin.Context) {
|
|
c.String(http.StatusOK, "OK")
|
|
})
|
|
}
|