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!(