mirror of
https://github.com/mudler/LocalAI.git
synced 2025-02-09 20:31:09 +00:00
Fix route
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
e56d437f7c
commit
83f375e1ff
@ -90,7 +90,7 @@ func API(application *application.Application) (*fiber.App, error) {
|
||||
|
||||
router.Use(middleware.StripPathPrefix())
|
||||
|
||||
router.Use(func(c *fiber.Ctx) error {
|
||||
router.Use("/v1/realtime", func(c *fiber.Ctx) error {
|
||||
if websocket.IsWebSocketUpgrade(c) {
|
||||
// Returns true if the client requested upgrade to the WebSocket protocol
|
||||
return c.Next()
|
||||
|
Loading…
x
Reference in New Issue
Block a user