Files
2026-06-15 23:48:37 +08:00

21 lines
393 B
Go

package handler
import (
"net/http"
"runtime"
"time"
"github.com/enterprise-ai-platform/server/internal/response"
)
var startTime = time.Now()
func HealthCheck(w http.ResponseWriter, r *http.Request) {
response.JSON(w, http.StatusOK, map[string]any{
"status": "ok",
"service": "aily-portal-api",
"uptime": time.Since(startTime).String(),
"go": runtime.Version(),
})
}