From 2ed1658c165ccce7801744352ecc81f258647f40 Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 9 Dec 2025 07:44:53 -0800 Subject: [PATCH] fix(admin-service): exclude /downloads from API prefix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Downloads route was getting /api/v1 prefix, making it inaccessible at /downloads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- backend/services/admin-service/src/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/services/admin-service/src/main.ts b/backend/services/admin-service/src/main.ts index 4cc5de66..5f6c1f61 100644 --- a/backend/services/admin-service/src/main.ts +++ b/backend/services/admin-service/src/main.ts @@ -7,11 +7,12 @@ async function bootstrap() { const logger = new Logger('Bootstrap') const app = await NestFactory.create(AppModule) - // Global prefix (exclude mobile API routes that need custom paths) + // Global prefix (exclude mobile API routes and downloads that need custom paths) app.setGlobalPrefix('api/v1', { exclude: [ { path: 'api/app/version/(.*)', method: RequestMethod.ALL }, { path: 'api/app/version/check', method: RequestMethod.GET }, + { path: 'downloads/(.*)', method: RequestMethod.GET }, ], })