mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-21 09:29:46 +01:00
refactor(library): implement library management service and update API routes
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
7dce0da557
commit
c1c7cfa49f
10 changed files with 637 additions and 168 deletions
|
|
@ -26,10 +26,11 @@ type Router struct {
|
|||
share core.Share
|
||||
playlists core.Playlists
|
||||
insights metrics.Insights
|
||||
libs core.Library
|
||||
}
|
||||
|
||||
func New(ds model.DataStore, share core.Share, playlists core.Playlists, insights metrics.Insights) *Router {
|
||||
r := &Router{ds: ds, share: share, playlists: playlists, insights: insights}
|
||||
func New(ds model.DataStore, share core.Share, playlists core.Playlists, insights metrics.Insights, libraryService core.Library) *Router {
|
||||
r := &Router{ds: ds, share: share, playlists: playlists, insights: insights, libs: libraryService}
|
||||
r.Handler = r.routes()
|
||||
return r
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue