fix custom playlist endpoints

This commit is contained in:
Simon 2025-02-17 20:34:44 +07:00
parent 3085fbf348
commit 598fa4e674
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
2 changed files with 3 additions and 3 deletions

View File

@ -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 },
});
};

View File

@ -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 },
});