mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Halfway of getNowPlaying implementation
This commit is contained in:
parent
a3238ce17b
commit
68c456e188
13 changed files with 113 additions and 29 deletions
|
@ -33,6 +33,7 @@ func mapEndpoints() {
|
|||
|
||||
beego.NSRouter("/getAlbumList.view", &api.AlbumListController{}, "*:GetAlbumList"),
|
||||
beego.NSRouter("/getStarred.view", &api.AlbumListController{}, "*:GetStarred"),
|
||||
beego.NSRouter("/getNowPlaying.view", &api.AlbumListController{}, "*:GetNowPlaying"),
|
||||
|
||||
beego.NSRouter("/getPlaylists.view", &api.PlaylistsController{}, "*:GetAll"),
|
||||
beego.NSRouter("/getPlaylist.view", &api.PlaylistsController{}, "*:Get"),
|
||||
|
@ -54,6 +55,7 @@ func mapFilters() {
|
|||
var ValidateRequest = func(ctx *context.Context) {
|
||||
c := api.BaseAPIController{}
|
||||
c.Ctx = ctx
|
||||
c.Data = make(map[interface{}]interface{})
|
||||
api.Validate(c)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue