From ca5fbf8736aef1c754f5048cc21bacb2f91360e2 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 26 Oct 2026 05:26:30 +0100 Subject: remove /debug/blacklist endpint --- src/api/mod.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/api/mod.rs') diff --git a/src/api/mod.rs b/src/api/mod.rs index b92f421..8f271f4 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -18,7 +18,7 @@ use axum::{ }, middleware::{self, Next}, response::{IntoResponse, Response}, - routing::{delete, get, put}, + routing::{delete, get}, }; use serde_json::{Value as JsonValue, json}; use sha2::{Digest, Sha256}; @@ -55,12 +55,10 @@ pub(crate) fn router(state: AppState, auth_state: AuthState, debug_api: bool) -> if debug_api { warn!("Debug API enabled"); - api = api - .route( - "/debug/firewall", - get(debug::get_debug_firewall).put(debug::put_debug_firewall), - ) - .route("/debug/blacklist", put(debug::put_debug_blacklist)); + api = api.route( + "/debug/firewall", + get(debug::get_debug_firewall).put(debug::put_debug_firewall), + ); } api.layer(middleware::from_fn_with_state(auth_state, basic_auth)) -- cgit v1.3.1