mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-23 10:29:46 +01:00
Change API name
This commit is contained in:
parent
2650e4c27c
commit
09e52eba87
5 changed files with 5 additions and 5 deletions
|
|
@ -103,7 +103,7 @@ func startServer(ctx context.Context) func() error {
|
|||
if strings.HasPrefix(conf.Server.UILoginBackgroundURL, "/") {
|
||||
a.MountRouter("Background images", consts.DefaultUILoginBackgroundURL, backgrounds.NewHandler())
|
||||
}
|
||||
a.MountRouter("Aura API", consts.URLPathAPI, CreateAuraAPIRouter())
|
||||
a.MountRouter("New Native API", consts.URLPathAPI, CreateNewNativeAPIRouter())
|
||||
return a.Run(ctx, conf.Server.Address, conf.Server.Port, conf.Server.TLSCert, conf.Server.TLSKey)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ func CreateNativeAPIRouter() *nativeapi.Router {
|
|||
return router
|
||||
}
|
||||
|
||||
func CreateAuraAPIRouter() *api.Router {
|
||||
func CreateNewNativeAPIRouter() *api.Router {
|
||||
sqlDB := db.Db()
|
||||
dataStore := persistence.New(sqlDB)
|
||||
router := api.New(dataStore)
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ func CreateNativeAPIRouter() *nativeapi.Router {
|
|||
))
|
||||
}
|
||||
|
||||
func CreateAuraAPIRouter() *api.Router {
|
||||
func CreateNewNativeAPIRouter() *api.Router {
|
||||
panic(wire.Build(
|
||||
allProviders,
|
||||
))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue