remove dump status route
@@ -2,7 +2,6 @@ use actix_web::{web, HttpRequest, HttpResponse};
use log::debug;
use meilisearch_error::ResponseError;
use meilisearch_lib::MeiliSearch;
-use serde::{Deserialize, Serialize};
use serde_json::json;
use crate::analytics::Analytics;
@@ -11,10 +10,7 @@ use crate::extractors::sequential_extractor::SeqHandler;
use crate::task::SummarizedTaskView;
pub fn configure(cfg: &mut web::ServiceConfig) {
- cfg.service(web::resource("").route(web::post().to(SeqHandler(create_dump))))
- .service(
- web::resource("/{dump_uid}/status").route(web::get().to(SeqHandler(get_dump_status))),
- );
+ cfg.service(web::resource("").route(web::post().to(SeqHandler(create_dump))));
}
pub async fn create_dump(
@@ -29,24 +25,3 @@ pub async fn create_dump(
debug!("returns: {:?}", res);
Ok(HttpResponse::Accepted().json(res))
}
-
-#[derive(Debug, Serialize)]
-#[serde(rename_all = "camelCase")]
-struct DumpStatusResponse {
- status: String,
-}
-
-#[derive(Deserialize)]
-struct DumpParam {
- dump_uid: String,
-}
-
-async fn get_dump_status(
- meilisearch: GuardedData<ActionPolicy<{ actions::DUMPS_GET }>, MeiliSearch>,
- path: web::Path<DumpParam>,
-) -> Result<HttpResponse, ResponseError> {
- todo!();
-
- // debug!("returns: {:?}", res);
- // Ok(HttpResponse::Ok().json(res))
-}
