From 1ac60f975628d8f01b78f660c8eaf0a517b5a398 Mon Sep 17 00:00:00 2001 From: Tracewebstudio Dev Date: Wed, 22 Apr 2026 01:13:59 +0200 Subject: [PATCH] fix: gateway routes /api/runtime-config to users service (was missing, causing 404) --- apps/gateway/src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/gateway/src/main.rs b/apps/gateway/src/main.rs index 1c66dde..c8ac0d3 100644 --- a/apps/gateway/src/main.rs +++ b/apps/gateway/src/main.rs @@ -202,6 +202,10 @@ impl Services { else if path.starts_with("/api/admin/runtime-configs") { Some(self.users_url.clone()) } + // User-facing runtime config (role + permissions bundle) + else if path.starts_with("/api/runtime-config") { + Some(self.users_url.clone()) + } // Catch-all for any other admin endpoints → users service else if path.starts_with("/api/admin/") { Some(self.users_url.clone())