delete_file_form_handler

Function delete_file_form_handler 

Source
pub async fn delete_file_form_handler(
    __arg0: State<Arc<AppState>>,
    __arg1: Path<String>,
    __arg2: Form<DeleteForm>,
) -> Result<Redirect, AppError>
Expand description

POST /file/:id/delete - no-JS form deletion that redirects to /files.