16 lines
237 B
Go
16 lines
237 B
Go
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"})
|
|
}
|