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 | fafc80addf396adb8c2506a0b2a423b61e9efca1 (patch) | |
| tree | e299e74c28fb3a8b634273be4193942bde14b474 /src/api/mod.rs | |
| parent | 793255321c9e79632003bb1540fce2d60406e5b9 (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)) |
