remove another unused legacy file

This commit is contained in:
tamo 2021-04-15 14:39:33 +02:00
parent 6359a08cfe
commit ec3a08ea0c
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69
3 changed files with 0 additions and 48 deletions

View File

@ -35,7 +35,6 @@ macro_rules! create_app {
.configure(index::services) .configure(index::services)
.configure(search::services) .configure(search::services)
.configure(settings::services) .configure(settings::services)
.configure(stop_words::services)
.configure(synonym::services) .configure(synonym::services)
.configure(health::services) .configure(health::services)
.configure(stats::services) .configure(stats::services)

View File

@ -8,7 +8,6 @@ pub mod key;
pub mod search; pub mod search;
pub mod settings; pub mod settings;
pub mod stats; pub mod stats;
pub mod stop_words;
pub mod synonym; pub mod synonym;
//pub mod dump; //pub mod dump;

View File

@ -1,46 +0,0 @@
use actix_web::{delete, get, post};
use actix_web::{web, HttpResponse};
use std::collections::BTreeSet;
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/stop-words",
wrap = "Authentication::Private"
)]
async fn get(
_data: web::Data<Data>,
_path: web::Path<IndexParam>,
) -> Result<HttpResponse, ResponseError> {
todo!()
}
#[post(
"/indexes/{index_uid}/settings/stop-words",
wrap = "Authentication::Private"
)]
async fn update(
_data: web::Data<Data>,
_path: web::Path<IndexParam>,
_body: web::Json<BTreeSet<String>>,
) -> Result<HttpResponse, ResponseError> {
todo!()
}
#[delete(
"/indexes/{index_uid}/settings/stop-words",
wrap = "Authentication::Private"
)]
async fn delete(
_data: web::Data<Data>,
_path: web::Path<IndexParam>,
) -> Result<HttpResponse, ResponseError> {
todo!()
}