diff options
| author | tv <tv@krebsco.de> | 2026-10-26 05:26:30 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-26 05:26:30 +0100 |
| commit | ca5fbf8736aef1c754f5048cc21bacb2f91360e2 (patch) | |
| tree | 544c5786a42285f6f2079a8f09a666c669083658 /src/api/mod.rs | |
| parent | 982cf915cca3598a7dcceedc46d5c75dd79efe80 (diff) | |
remove /debug/blacklist endpint
Diffstat (limited to 'src/api/mod.rs')
| -rw-r--r-- | src/api/mod.rs | 12 |
1 files changed, 5 insertions, 7 deletions
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)) |
