feat: add health check endpoint and update Makefile for health URL
This commit is contained in:
@@ -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"})
|
||||
}
|
||||
Reference in New Issue
Block a user