]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/utils/video-blacklist.ts
Fix video full description
[github/Chocobozzz/PeerTube.git] / server / tests / utils / video-blacklist.ts
index 5729d13d86c6e6cca6b31e9794dcdfdeccfa11bf..3a499f46a75302c10da442be13caf39b10751181 100644 (file)
@@ -11,7 +11,7 @@ function addVideoToBlacklist (url: string, token: string, videoId: number, speci
 }
 
 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)
@@ -21,7 +21,7 @@ function removeVideoFromBlacklist (url: string, token: string, videoId: number,
 }
 
 function getBlacklistedVideosList (url: string, token: string, specialStatus = 200) {
-  const path = '/api/v1/blacklist/'
+  const path = '/api/v1/videos/blacklist/'
 
   return request(url)
           .get(path)
@@ -33,7 +33,7 @@ function getBlacklistedVideosList (url: string, token: string, specialStatus = 2
 }
 
 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)