headless_lms_server::controllers::main_frontend::page_audio_files

Function remove_page_audio

Source
async fn remove_page_audio(
    page_audio_id: Path<Uuid>,
    page_id: Path<Uuid>,
    pool: Data<PgPool>,
    user: AuthUser,
    file_store: Data<dyn FileStore>,
) -> ControllerResult<Json<()>>
Expand description

DELETE /api/v0/main-frontend/page_audio/:file_id - Removes the chapter image.

ยงExample

Request:

DELETE /api/v0/main-frontend/page_audio/d332f3d9-39a5-4a18-80f4-251727693c37 HTTP/1.1