feat: delete lesson videos from Bunny
This commit is contained in:
@@ -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); },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user