mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Inject DB into DataStore, instead of hardcode the dependency
This commit is contained in:
parent
c0fc36da63
commit
344d7a4392
4 changed files with 26 additions and 22 deletions
|
@ -5,14 +5,14 @@ package cmd
|
|||
import (
|
||||
"sync"
|
||||
|
||||
"github.com/navidrome/navidrome/server/events"
|
||||
|
||||
"github.com/google/wire"
|
||||
"github.com/navidrome/navidrome/core"
|
||||
"github.com/navidrome/navidrome/core/agents/lastfm"
|
||||
"github.com/navidrome/navidrome/db"
|
||||
"github.com/navidrome/navidrome/persistence"
|
||||
"github.com/navidrome/navidrome/scanner"
|
||||
"github.com/navidrome/navidrome/server"
|
||||
"github.com/navidrome/navidrome/server/events"
|
||||
"github.com/navidrome/navidrome/server/nativeapi"
|
||||
"github.com/navidrome/navidrome/server/subsonic"
|
||||
)
|
||||
|
@ -24,6 +24,7 @@ var allProviders = wire.NewSet(
|
|||
persistence.New,
|
||||
lastfm.NewRouter,
|
||||
events.GetBroker,
|
||||
db.Db,
|
||||
)
|
||||
|
||||
func CreateServer(musicFolder string) *server.Server {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue