Files
galaxy-game/game/internal/router/handler/healthz.go
T
2026-04-28 20:39:18 +02:00

15 lines
375 B
Go

package handler
import (
"net/http"
"github.com/gin-gonic/gin"
)
// HealthzHandler is the technical liveness probe used by Runtime Manager
// and operator tooling. It returns 200 with {"status":"ok"} regardless
// of whether the engine has been initialised through POST /api/v1/init.
func HealthzHandler(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"status": "ok"})
}