From f4b9052c6bff06415678e60b34f828a415c8a387 Mon Sep 17 00:00:00 2001 From: David Herberth Date: Tue, 11 Nov 2025 10:51:20 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20"ref(http):=20Expose=20all=20routes=20?= =?UTF-8?q?temporarily=20even=20with=20internal=20ports=20(#5=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 040714fadf336a74f624cc2293289aeb4103c06a. --- relay-server/src/endpoints/mod.rs | 1 - relay-server/src/services/server/mod.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/relay-server/src/endpoints/mod.rs b/relay-server/src/endpoints/mod.rs index 40ef249e86e..b3204b223a3 100644 --- a/relay-server/src/endpoints/mod.rs +++ b/relay-server/src/endpoints/mod.rs @@ -56,7 +56,6 @@ pub fn internal_routes(_: &Config) -> Router{ /// Relay's public routes. /// /// Routes which are public API and must be exposed. -#[expect(unused, reason = "temporarily unused")] pub fn public_routes(config: &Config) -> Router { // Exclude internal routes, they must be configured separately. public_routes_raw(config).route("/api/relay/{*not_found}", any(statics::not_found)) diff --git a/relay-server/src/services/server/mod.rs b/relay-server/src/services/server/mod.rs index faca16c57f9..051ba7eda78 100644 --- a/relay-server/src/services/server/mod.rs +++ b/relay-server/src/services/server/mod.rs @@ -211,7 +211,7 @@ impl Service for HttpServer { relay_statsd::metric!(counter(RelayCounters::ServerStarting) += 1); if let Some(internal_listener) = internal_listener { - let public = make_app(service.clone(), crate::endpoints::all_routes); + let public = make_app(service.clone(), crate::endpoints::public_routes); let internal = make_app(service, crate::endpoints::internal_routes); tokio::try_join!(