15 lines
263 B
Go
15 lines
263 B
Go
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// RegisterHealthRoutes 注册健康检查路由
|
|
func RegisterHealthRoutes(rg *gin.RouterGroup) {
|
|
rg.GET("/health", func(c *gin.Context) {
|
|
c.JSON(http.StatusOK, gin.H{"status": "ok"})
|
|
})
|
|
}
|