diff --git a/src/handlers/keys.rs b/src/handlers/keys.rs index 8b58502..195e0ff 100644 --- a/src/handlers/keys.rs +++ b/src/handlers/keys.rs @@ -37,15 +37,6 @@ pub async fn get_ohttp_keys(State(state): State) -> Result, -) -> Result { - // Just forward to the main handler - get_ohttp_keys(State(state)).await -} - /// Calculate appropriate cache duration for key configurations fn calculate_cache_max_age(state: &AppState) -> u64 { // Cache for 10% of rotation interval, minimum 1 hour, maximum 24 hours diff --git a/src/handlers/mod.rs b/src/handlers/mod.rs index e00a63f..84d8c45 100644 --- a/src/handlers/mod.rs +++ b/src/handlers/mod.rs @@ -12,9 +12,7 @@ pub fn routes() -> Router { Router::new() // OHTTP endpoints .route("/gateway", post(ohttp::handle_ohttp_request)) - .route("/ohttp-keys", get(keys::get_ohttp_keys)) - // Legacy endpoints for backward compatibility - .route("/ohttp-configs", get(keys::get_legacy_ohttp_configs)) + .route("/ohttp-configs", get(keys::get_ohttp_keys)) // Health and monitoring .route("/health", get(health::health_check)) .route("/health/keys", get(keys::key_health_check))