From 15f8be4227c493fa6b2d3f2aa3954d2544f80648 Mon Sep 17 00:00:00 2001 From: Bastian Gruber Date: Tue, 22 Jul 2025 17:44:43 +0200 Subject: [PATCH] Change endpoint to /ohttp-configs --- src/handlers/keys.rs | 9 --------- src/handlers/mod.rs | 4 +--- 2 files changed, 1 insertion(+), 12 deletions(-) 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))