Add Bookmarks to Subsonic API

This commit is contained in:
Deluan
2020-07-31 16:56:42 -04:00
committed by Deluan Quintão
parent 3d0e70e907
commit 23d69d26e0
3 changed files with 71 additions and 6 deletions
+3
View File
@@ -113,6 +113,9 @@ func (api *Router) routes() http.Handler {
r.Group(func(r chi.Router) {
c := initBookmarksController(api)
withPlayer := r.With(getPlayer(api.Players))
H(withPlayer, "getBookmarks", c.GetBookmarks)
H(withPlayer, "createBookmark", c.CreateBookmark)
H(withPlayer, "deleteBookmark", c.DeleteBookmark)
H(withPlayer, "getPlayQueue", c.GetPlayQueue)
H(withPlayer, "savePlayQueue", c.SavePlayQueue)
})