mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
star/unstar implemented
This commit is contained in:
parent
b25cfd96eb
commit
c50b0bdc48
6 changed files with 98 additions and 4 deletions
|
@ -29,6 +29,7 @@ func init() {
|
|||
utils.DefineSingleton(new(engine.Playlists), engine.NewPlaylists)
|
||||
utils.DefineSingleton(new(engine.Search), engine.NewSearch)
|
||||
utils.DefineSingleton(new(engine.Scrobbler), engine.NewScrobbler)
|
||||
utils.DefineSingleton(new(engine.Ratings), engine.NewRatings)
|
||||
|
||||
utils.DefineSingleton(new(scanner.CheckSumRepository), persistence.NewCheckSumRepository)
|
||||
utils.DefineSingleton(new(scanner.Scanner), scanner.NewItunesScanner)
|
||||
|
|
|
@ -31,6 +31,8 @@ func mapEndpoints() {
|
|||
beego.NSRouter("/download.view", &api.StreamController{}, "*:Download"),
|
||||
|
||||
beego.NSRouter("/scrobble.view", &api.MediaAnnotationController{}, "*:Scrobble"),
|
||||
beego.NSRouter("/star.view", &api.MediaAnnotationController{}, "*:Star"),
|
||||
beego.NSRouter("/unstar.view", &api.MediaAnnotationController{}, "*:Unstar"),
|
||||
|
||||
beego.NSRouter("/getAlbumList.view", &api.AlbumListController{}, "*:GetAlbumList"),
|
||||
beego.NSRouter("/getStarred.view", &api.AlbumListController{}, "*:GetStarred"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue