Authenticate Subsonic API calls using the DB

This commit is contained in:
Deluan
2020-01-20 13:35:59 -05:00
parent 50c7d3800a
commit 99c28731d4
13 changed files with 210 additions and 93 deletions
+2 -1
View File
@@ -36,11 +36,12 @@ func CreateSubsonicAPIRouter() *subsonic.Router {
cover := engine.NewCover(dataStore)
nowPlayingRepository := engine.NewNowPlayingRepository()
listGenerator := engine.NewListGenerator(dataStore, nowPlayingRepository)
users := engine.NewUsers(dataStore)
playlists := engine.NewPlaylists(dataStore)
ratings := engine.NewRatings(dataStore)
scrobbler := engine.NewScrobbler(dataStore, nowPlayingRepository)
search := engine.NewSearch(dataStore)
router := subsonic.New(browser, cover, listGenerator, playlists, ratings, scrobbler, search)
router := subsonic.New(browser, cover, listGenerator, users, playlists, ratings, scrobbler, search)
return router
}