aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/utils
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-03-06 15:36:44 +0100
committerChocobozzz <chocobozzz@cpy.re>2019-03-18 11:17:59 +0100
commit830b4faff15fb9c81d88e8e69fcdf94aad32bef8 (patch)
tree53de6c9e30ce88734b4bdda62016e0498fe78491 /shared/utils
parentd4c9f45b31eda0b7a391ddc83eb290ca5cba311f (diff)
downloadPeerTube-830b4faff15fb9c81d88e8e69fcdf94aad32bef8.tar.gz
PeerTube-830b4faff15fb9c81d88e8e69fcdf94aad32bef8.tar.zst
PeerTube-830b4faff15fb9c81d88e8e69fcdf94aad32bef8.zip
Add/update/delete/list my playlists
Diffstat (limited to 'shared/utils')
-rw-r--r--shared/utils/videos/video-playlists.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/shared/utils/videos/video-playlists.ts b/shared/utils/videos/video-playlists.ts
index 4af52ec0f..b84b21623 100644
--- a/shared/utils/videos/video-playlists.ts
+++ b/shared/utils/videos/video-playlists.ts
@@ -265,9 +265,21 @@ async function checkPlaylistFilesWereRemoved (
265 } 265 }
266} 266}
267 267
268function getVideoPlaylistPrivacies (url: string) {
269 const path = '/api/v1/video-playlists/privacies'
270
271 return makeGetRequest({
272 url,
273 path,
274 statusCodeExpected: 200
275 })
276}
277
268// --------------------------------------------------------------------------- 278// ---------------------------------------------------------------------------
269 279
270export { 280export {
281 getVideoPlaylistPrivacies,
282
271 getVideoPlaylistsList, 283 getVideoPlaylistsList,
272 getVideoChannelPlaylistsList, 284 getVideoChannelPlaylistsList,
273 getAccountPlaylistsList, 285 getAccountPlaylistsList,