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