use std::collections::BTreeMap; use actix_web::{web, HttpResponse}; use actix_web::{delete, get, post}; use indexmap::IndexMap; use meilisearch_core::settings::{SettingsUpdate, UpdateState}; use crate::error::{Error, ResponseError}; use crate::helpers::Authentication; use crate::routes::{IndexParam, IndexUpdateResponse}; use crate::Data; pub fn services(cfg: &mut web::ServiceConfig) { cfg.service(get).service(update).service(delete); } #[get( "/indexes/{index_uid}/settings/synonyms", wrap = "Authentication::Private" )] async fn get( data: web::Data, path: web::Path, ) -> Result { todo!() } #[post( "/indexes/{index_uid}/settings/synonyms", wrap = "Authentication::Private" )] async fn update( data: web::Data, path: web::Path, body: web::Json>>, ) -> Result { todo!() } #[delete( "/indexes/{index_uid}/settings/synonyms", wrap = "Authentication::Private" )] async fn delete( data: web::Data, path: web::Path, ) -> Result { todo!() }