Refactor getGenres. Remove engine.Browser

This commit is contained in:
Deluan
2020-08-13 22:07:50 -04:00
committed by Deluan Quintão
parent eba8395146
commit 22f34b3347
8 changed files with 21 additions and 102 deletions
+2 -3
View File
@@ -17,9 +17,8 @@ func initSystemController(router *Router) *SystemController {
}
func initBrowsingController(router *Router) *BrowsingController {
browser := router.Browser
dataStore := router.DataStore
browsingController := NewBrowsingController(browser, dataStore)
browsingController := NewBrowsingController(dataStore)
return browsingController
}
@@ -85,6 +84,6 @@ var allProviders = wire.NewSet(
NewUsersController,
NewMediaRetrievalController,
NewStreamController,
NewBookmarksController, wire.FieldsOf(new(*Router), "Browser", "Artwork", "ListGenerator", "Playlists", "Scrobbler",
NewBookmarksController, wire.FieldsOf(new(*Router), "Artwork", "ListGenerator", "Playlists", "Scrobbler",
"Search", "Streamer", "Archiver", "DataStore"),
)