mirror of
https://github.com/mudler/LocalAI.git
synced 2025-01-02 19:06:40 +00:00
14 lines
422 B
Go
14 lines
422 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, ds *coreExplorer.DiscoveryServer) {
|
||
|
app.Get("/", explorer.Dashboard())
|
||
|
app.Post("/network/add", explorer.AddNetwork(db))
|
||
|
app.Get("/networks", explorer.ShowNetworks(db, ds))
|
||
|
}
|