Files
LocalAI/core/http/routes/health.go
Ettore Di Giacinto 1cdcaf0152 feat: migrate to echo and enable cancellation of non-streaming requests (#7270)
* WIP: migrate to echo

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

* tests

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>

---------

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2025-11-14 22:57:53 +01:00

16 lines
238 B
Go

package routes
import (
"github.com/labstack/echo/v4"
)
func HealthRoutes(app *echo.Echo) {
// Service health checks
ok := func(c echo.Context) error {
return c.NoContent(200)
}
app.GET("/healthz", ok)
app.GET("/readyz", ok)
}