add attach playlist feature

This commit is contained in:
XenGi 2024-04-18 12:12:52 +02:00
parent aeaef11341
commit 1fc5dc2bf8
Signed by: xengi
SSH key fingerprint: SHA256:FGp51kRvGOcWnTHiOI39ImwVO4A3fpvR30nPX3LpV7g
4 changed files with 23 additions and 2 deletions

View file

@ -127,7 +127,7 @@ control_replace_playlist.addEventListener("click", () => {
});
control_attach_playlist.addEventListener("click", () => {
fetch(`${API_URL}/`).then(async r => {
fetch(`${API_URL}/queue/attach/${control_playlist_list.value}`).then(async r => {
if (r.status !== 200) {
console.error(`API returned ${r.status}: ${r.statusText}`);
}