playlists can now be rearranged and updated

This commit is contained in:
Isaac Grynsztein
2020-02-24 03:49:43 -05:00
parent ac0199f596
commit 9302084f60
4 changed files with 70 additions and 4 deletions

View File

@@ -107,6 +107,12 @@ export class PostsService {
thumbnailURL: thumbnailURL});
}
updatePlaylist(playlistID, fileNames, type) {
return this.http.post(this.path + 'updatePlaylist', {playlistID: playlistID,
fileNames: fileNames,
type: type});
}
removePlaylist(playlistID, type) {
return this.http.post(this.path + 'deletePlaylist', {playlistID: playlistID, type: type});
}