use std::collections::BTreeMap; use actix_web::{web, HttpResponse}; use actix_web::{delete, get, post}; use crate::error::ResponseError; use crate::helpers::Authentication; use crate::routes::IndexParam; 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!() }