feat: delete lesson videos from Bunny

This commit is contained in:
Cauê Faleiros
2026-09-04 15:18:10 -03:00
parent 1a79fa447b
commit 66671f65c3
4 changed files with 45 additions and 5 deletions

View File

@@ -150,6 +150,9 @@ export const instructorApi = {
async bunnyVideoStatus(videoId: string) {
return apiRequest<{ data: BunnyVideo }>(`/manage/media/bunny/videos/${videoId}`);
},
async deleteBunnyVideo(videoId: string) {
return apiRequest<void>(`/manage/media/bunny/videos/${videoId}`, { method: 'DELETE' });
},
async coverConfiguration() { return apiRequest<{ data: { configured: boolean; maxUploadBytes: number } }>('/manage/media/covers/config'); },
async uploadCover(file: File) { return uploadImageRequest<{ data: { key: string; coverImageUrl: string } }>('/manage/media/covers', file); },
};