Changed api/addToQueue from get to post
This commit is contained in:
parent
134c43a855
commit
9dbf2dcde9
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
|||||||
import { sendToServer } from '@/utils/api'
|
import { fetchData } from '@/utils/api'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string} url
|
* @param {string} url
|
||||||
@ -7,7 +7,7 @@ import { sendToServer } from '@/utils/api'
|
|||||||
export function sendAddToQueue(url, bitrate = null) {
|
export function sendAddToQueue(url, bitrate = null) {
|
||||||
if (!url) throw new Error('No URL given to sendAddToQueue function!')
|
if (!url) throw new Error('No URL given to sendAddToQueue function!')
|
||||||
|
|
||||||
sendToServer('addToQueue', { url, bitrate })
|
fetchData('addToQueue', { url, bitrate }, 'POST')
|
||||||
}
|
}
|
||||||
|
|
||||||
export function aggregateDownloadLinks(releases) {
|
export function aggregateDownloadLinks(releases) {
|
||||||
|
Loading…
Reference in New Issue
Block a user