refactor: remove unused

This commit is contained in:
antebrl
2024-12-15 21:03:07 +00:00
parent 65375b585a
commit f931e93355
3 changed files with 7 additions and 55 deletions

View File

@@ -36,25 +36,6 @@ const apiService = {
throw error;
}
},
async uploadPlaylist(data: FormData | { playlistUrl: string }): Promise<void> {
try {
const options: RequestInit = {
method: 'POST',
body: data instanceof FormData ? data : JSON.stringify(data),
headers: data instanceof FormData ? {} : { 'Content-Type': 'application/json' },
};
const response = await fetch(`${API_BASE_URL}/api/playlist`, options);
if (!response.ok) {
throw new Error(`HTTP error! Status: ${response.status}`);
}
} catch (error) {
console.error('Error uploading playlist:', error);
throw error;
}
},
};
export default apiService;