mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-20 21:23:10 +00:00
9729d2ae37
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
14 lines
384 B
Go
14 lines
384 B
Go
package routes
|
|
|
|
import (
|
|
"github.com/gofiber/fiber/v2"
|
|
coreExplorer "github.com/mudler/LocalAI/core/explorer"
|
|
"github.com/mudler/LocalAI/core/http/endpoints/explorer"
|
|
)
|
|
|
|
func RegisterExplorerRoutes(app *fiber.App, db *coreExplorer.Database) {
|
|
app.Get("/", explorer.Dashboard())
|
|
app.Post("/network/add", explorer.AddNetwork(db))
|
|
app.Get("/networks", explorer.ShowNetworks(db))
|
|
}
|