Implement updateShare and deleteShare Subsonic endpoints

This commit is contained in:
Deluan
2023-01-22 20:21:06 -05:00
parent 20271df4fb
commit d5df102f9f
6 changed files with 52 additions and 7 deletions
+2 -1
View File
@@ -129,6 +129,8 @@ func (api *Router) routes() http.Handler {
r.Group(func(r chi.Router) {
h(r, "getShares", api.GetShares)
h(r, "createShare", api.CreateShare)
h(r, "updateShare", api.UpdateShare)
h(r, "deleteShare", api.DeleteShare)
})
r.Group(func(r chi.Router) {
r.Use(getPlayer(api.players))
@@ -170,7 +172,6 @@ func (api *Router) routes() http.Handler {
// Not Implemented (yet?)
h501(r, "jukeboxControl")
h501(r, "updateShare", "deleteShare")
h501(r, "getPodcasts", "getNewestPodcasts", "refreshPodcasts", "createPodcastChannel", "deletePodcastChannel",
"deletePodcastEpisode", "downloadPodcastEpisode")
h501(r, "createUser", "updateUser", "deleteUser", "changePassword")