headless_lms_server::controllers::main_frontend::chapters

Function delete_chapter

Source
async fn delete_chapter(
    chapter_id: Path<String>,
    pool: Data<PgPool>,
    user: AuthUser,
    file_store: Data<dyn FileStore>,
    app_conf: Data<ApplicationConfiguration>,
) -> ControllerResult<Json<Chapter>>
Expand description

DELETE /api/v0/main-frontend/chapters/:chapter_id - Delete a chapter.