From cb59a964dde79c90b67f85f9ee61f758bb661c14 Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 4 Jan 2026 04:01:09 -0800 Subject: [PATCH] fix(leaderboard-service): change global prefix from 'api' to 'api/v1' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Match the global prefix convention used by all other services. This fixes Kong routing 404 errors for /api/v1/leaderboard/* endpoints. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- backend/services/leaderboard-service/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/leaderboard-service/src/main.ts b/backend/services/leaderboard-service/src/main.ts index 78ea78cc..7138715d 100644 --- a/backend/services/leaderboard-service/src/main.ts +++ b/backend/services/leaderboard-service/src/main.ts @@ -25,7 +25,7 @@ async function bootstrap() { }); // API 前缀 - app.setGlobalPrefix('api'); + app.setGlobalPrefix('api/v1'); // Swagger 文档配置 const config = new DocumentBuilder()