}
function removeVideoFromBlacklist (url: string, token: string, videoId: number, specialStatus = 204) {
- const path = '/api/v1/blacklist/' + videoId
+ const path = '/api/v1/videos/' + videoId + '/blacklist'
return request(url)
.delete(path)
}
function getBlacklistedVideosList (url: string, token: string, specialStatus = 200) {
- const path = '/api/v1/blacklist/'
+ const path = '/api/v1/videos/blacklist/'
return request(url)
.get(path)
}
function getSortedBlacklistedVideosList (url: string, token: string, sort: string, specialStatus = 200) {
- const path = '/api/v1/blacklist/'
+ const path = '/api/v1/videos/blacklist/'
return request(url)
.get(path)