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
+15
View File
@@ -0,0 +1,15 @@
package api
import (
"agent-desk/internal/pkg/httpx"
"github.com/gin-gonic/gin"
)
type healthResponse struct {
Status string `json:"status"`
}
func Health(ctx *gin.Context) {
httpx.WriteJSON(ctx, &healthResponse{Status: "ok"})
}