feat: add health check endpoint and update Makefile for health URL

This commit is contained in:
mlogclub
2026-06-13 09:59:21 +08:00
parent b8a7dd022c
commit 164953d56d
4 changed files with 58 additions and 1 deletions
+2
View File
@@ -8,6 +8,7 @@ import (
"agent-desk/internal/ai/mcps"
_ "agent-desk/internal/ai/runtime"
"agent-desk/internal/handlers/api"
"agent-desk/internal/middleware"
"agent-desk/internal/pkg/config"
"agent-desk/internal/pkg/ginx"
@@ -154,6 +155,7 @@ func addRouter(app *gin.Engine) {
app.Any("/api/mcp", gin.WrapH(mcps.NewHTTPHandler()))
apiGroup := app.Group("/api")
apiGroup.GET("/health", api.Health)
registerApiAuthRoutes(apiGroup.Group("/auth"))
registerApiChannelRoutes(apiGroup.Group("/channel"))
registerApiCustomerRoutes(apiGroup.Group("/customer"))