mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-02 16:53:17 +00:00
fix(gallery): be consistent and disable UI routes as well (#3262)
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
5d416006ae
commit
1dbb3b8abc
@ -119,6 +119,8 @@ func RegisterUIRoutes(app *fiber.App,
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !appConfig.DisableGalleryEndpoint {
|
||||||
|
|
||||||
// Show the Models page (all models)
|
// Show the Models page (all models)
|
||||||
app.Get("/browse", auth, func(c *fiber.Ctx) error {
|
app.Get("/browse", auth, func(c *fiber.Ctx) error {
|
||||||
term := c.Query("term")
|
term := c.Query("term")
|
||||||
@ -298,6 +300,7 @@ func RegisterUIRoutes(app *fiber.App,
|
|||||||
|
|
||||||
return c.SendString(elements.DoneProgress(galleryID, displayText, showDelete))
|
return c.SendString(elements.DoneProgress(galleryID, displayText, showDelete))
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// Show the Chat page
|
// Show the Chat page
|
||||||
app.Get("/chat/:model", auth, func(c *fiber.Ctx) error {
|
app.Get("/chat/:model", auth, func(c *fiber.Ctx) error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user