change param tuples by struct

add settings endpoint; wip
This commit is contained in:
Quentin de Quelen 2020-04-09 11:11:48 +02:00 committed by qdequele
parent 5ec130e6dc
commit b08f6737ac
No known key found for this signature in database
GPG key ID: B3F0A000EBF11745
6 changed files with 343 additions and 310 deletions

View file

@ -1,5 +1,5 @@
use actix_web::{get, HttpResponse};
use serde::Serialize;
use serde::{Serialize, Deserialize};
use log::error;
use meilisearch_core::ProcessedUpdateResult;
@ -11,10 +11,15 @@ pub mod index;
pub mod key;
pub mod search;
pub mod stats;
// pub mod setting;
pub mod setting;
// pub mod stop_words;
// pub mod synonym;
#[derive(Default, Deserialize)]
pub struct IndexParam {
index_uid: String
}
#[derive(Default, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct IndexUpdateResponse {