Changed api/addToQueue from get to post

This commit is contained in:
RemixDev 2021-05-13 18:16:11 +02:00
parent 134c43a855
commit 9dbf2dcde9
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
import { sendToServer } from '@/utils/api'
import { fetchData } from '@/utils/api'
/**
* @param {string} url
@ -7,7 +7,7 @@ import { sendToServer } from '@/utils/api'
export function sendAddToQueue(url, bitrate = null) {
if (!url) throw new Error('No URL given to sendAddToQueue function!')
sendToServer('addToQueue', { url, bitrate })
fetchData('addToQueue', { url, bitrate }, 'POST')
}
export function aggregateDownloadLinks(releases) {