From 0e05139c010993fae7bb265699627b9eca1676c0 Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 11 Jan 2026 09:05:42 -0800 Subject: [PATCH] =?UTF-8?q?fix(contribution-service):=20=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E4=BD=BF=E7=94=A8api/v2=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.5 --- backend/api-gateway/kong.yml | 3 +-- backend/services/contribution-service/src/main.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/api-gateway/kong.yml b/backend/api-gateway/kong.yml index 78360121..f72a41f0 100644 --- a/backend/api-gateway/kong.yml +++ b/backend/api-gateway/kong.yml @@ -277,10 +277,9 @@ services: # --------------------------------------------------------------------------- # Contribution Service 2.0 - 算力服务 - # 服务使用 /api/v1/contributions 前缀 # --------------------------------------------------------------------------- - name: contribution-service-v2 - url: http://192.168.1.111:3020/api/v1/contributions + url: http://192.168.1.111:3020/api/v2/contributions routes: - name: contribution-v2-api paths: diff --git a/backend/services/contribution-service/src/main.ts b/backend/services/contribution-service/src/main.ts index b6d2fb90..5fda77b6 100644 --- a/backend/services/contribution-service/src/main.ts +++ b/backend/services/contribution-service/src/main.ts @@ -9,7 +9,7 @@ async function bootstrap() { const app = await NestFactory.create(AppModule); // Global prefix - app.setGlobalPrefix('api/v1'); + app.setGlobalPrefix('api/v2'); // Validation app.useGlobalPipes(