mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-20 13:13:11 +00:00
14 lines
232 B
Go
14 lines
232 B
Go
|
package routes
|
||
|
|
||
|
import "github.com/gofiber/fiber/v2"
|
||
|
|
||
|
func HealthRoutes(app *fiber.App) {
|
||
|
// Service health checks
|
||
|
ok := func(c *fiber.Ctx) error {
|
||
|
return c.SendStatus(200)
|
||
|
}
|
||
|
|
||
|
app.Get("/healthz", ok)
|
||
|
app.Get("/readyz", ok)
|
||
|
}
|