feat: 添加健康检查

This commit is contained in:
lixiangwuxian
2024-10-15 23:06:27 +08:00
parent af232c2ecf
commit ea3ef541e2
2 changed files with 16 additions and 0 deletions

9
health/health.go Normal file
View File

@@ -0,0 +1,9 @@
package health
import "github.com/gin-gonic/gin"
func HealthHandler(c *gin.Context) {
c.JSON(200, gin.H{
"message": "pong",
})
}