This commit is contained in:
hexlocation 2025-08-10 15:44:37 +02:00
parent 7757ef32f4
commit 663d508093
6 changed files with 187 additions and 53 deletions

View file

@ -11,7 +11,7 @@ use tokio::{net::TcpStream, sync::Mutex};
use crate::{
config::{Client, Config},
db::BoxyDatabase,
routes::api::{AddHost, RegisterEndpoint, RemoveHost},
routes::api::{AddHostToEndpoint, RegisterEndpoint, RemoveHost},
server::{GeneralResponse, custom_resp},
services::matcher::Matcher,
};
@ -119,7 +119,7 @@ impl Matcher for ApiMatcher {
fn retrieve(&self) -> Vec<Arc<dyn crate::services::matcher::Route<Self> + Sync + Send>> {
vec![
Arc::new(RegisterEndpoint {}),
Arc::new(AddHost {}),
Arc::new(AddHostToEndpoint {}),
Arc::new(RemoveHost {}),
]
}