mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
refactor create_app macro
This commit is contained in:
parent
f2b2ca6d55
commit
71226feb74
3 changed files with 83 additions and 77 deletions
|
@ -1,4 +1,3 @@
|
|||
use actix_web::web::Payload;
|
||||
use actix_web::{delete, get, post, put};
|
||||
use actix_web::{web, HttpResponse};
|
||||
use indexmap::IndexMap;
|
||||
|
@ -130,7 +129,7 @@ async fn add_documents(
|
|||
data: web::Data<Data>,
|
||||
path: web::Path<IndexParam>,
|
||||
params: web::Query<UpdateDocumentsQuery>,
|
||||
body: Payload,
|
||||
body: web::Payload,
|
||||
) -> Result<HttpResponse, ResponseError> {
|
||||
let update_status = data
|
||||
.add_documents(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue