add dump batch handler

This commit is contained in:
ad hoc 2022-05-19 14:44:24 +02:00
parent 46cdc17701
commit 60a8249de6
No known key found for this signature in database
GPG key ID: 4F00A782990CC643
9 changed files with 166 additions and 176 deletions

View file

@ -45,8 +45,8 @@ async fn get_dump_status(
meilisearch: GuardedData<ActionPolicy<{ actions::DUMPS_GET }>, MeiliSearch>,
path: web::Path<DumpParam>,
) -> Result<HttpResponse, ResponseError> {
let res = meilisearch.dump_info(path.dump_uid.clone()).await?;
todo!();
debug!("returns: {:?}", res);
Ok(HttpResponse::Ok().json(res))
// debug!("returns: {:?}", res);
// Ok(HttpResponse::Ok().json(res))
}