Fix route

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto 2024-11-05 22:19:35 +01:00
parent 08a358b481
commit f157314fb8

View File

@ -88,7 +88,7 @@ func API(application *application.Application) (*fiber.App, error) {
router := fiber.New(fiberCfg) router := fiber.New(fiberCfg)
router.Use(func(c *fiber.Ctx) error { router.Use("/v1/realtime", func(c *fiber.Ctx) error {
if websocket.IsWebSocketUpgrade(c) { if websocket.IsWebSocketUpgrade(c) {
// Returns true if the client requested upgrade to the WebSocket protocol // Returns true if the client requested upgrade to the WebSocket protocol
return c.Next() return c.Next()