add the content type to all the route

This commit is contained in:
Irevoire 2021-10-13 20:56:28 +02:00 committed by marin postma
parent 9e1bba40f7
commit 8e2d6cf87d
No known key found for this signature in database
GPG key ID: 6088B7721C3E39F9
5 changed files with 46 additions and 15 deletions

View file

@ -148,6 +148,7 @@ pub async fn add_documents(
"with_primary_key": params.primary_key,
"index_creation": meilisearch.get_index(path.index_uid.clone()).await.is_ok(),
}),
Some(&req),
);
document_addition(
@ -182,6 +183,7 @@ pub async fn update_documents(
"with_primary_key": params.primary_key,
"index_creation": meilisearch.get_index(path.index_uid.clone()).await.is_ok(),
}),
Some(&req),
);
document_addition(