mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2025-03-14 09:50:12 +00:00
fix custom playlist endpoints
This commit is contained in:
parent
3085fbf348
commit
598fa4e674
@ -1,9 +1,9 @@
|
||||
import APIClient from '../../functions/APIClient';
|
||||
|
||||
const createCustomPlaylist = async (playlistId: string) => {
|
||||
return APIClient('/api/playlist/', {
|
||||
return APIClient('/api/playlist/custom/', {
|
||||
method: 'POST',
|
||||
body: { data: { create: playlistId } },
|
||||
body: { playlist_name: playlistId },
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -7,7 +7,7 @@ const updateCustomPlaylist = async (
|
||||
playlistId: string,
|
||||
videoId: string,
|
||||
) => {
|
||||
return APIClient(`/api/playlist/${playlistId}/`, {
|
||||
return APIClient(`/api/playlist/custom/${playlistId}/`, {
|
||||
method: 'POST',
|
||||
body: { action, video_id: videoId },
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user