summaryrefslogtreecommitdiffstats
path: root/src/api/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/mod.rs')
-rw-r--r--src/api/mod.rs12
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))