diff --git a/backend/api-gateway/kong.yml b/backend/api-gateway/kong.yml index 0f699108..78360121 100644 --- a/backend/api-gateway/kong.yml +++ b/backend/api-gateway/kong.yml @@ -277,18 +277,19 @@ services: # --------------------------------------------------------------------------- # Contribution Service 2.0 - 算力服务 + # 服务使用 /api/v1/contributions 前缀 # --------------------------------------------------------------------------- - name: contribution-service-v2 - url: http://192.168.1.111:3020 + url: http://192.168.1.111:3020/api/v1/contributions routes: - name: contribution-v2-api paths: - /api/v2/contribution - strip_path: false + strip_path: true - name: contribution-v2-health paths: - /api/v2/contribution/health - strip_path: false + strip_path: true # --------------------------------------------------------------------------- # Mining Service 2.0 - 挖矿服务 diff --git a/frontend/mining-app/lib/core/network/api_endpoints.dart b/frontend/mining-app/lib/core/network/api_endpoints.dart index c9fb7250..44a85d35 100644 --- a/frontend/mining-app/lib/core/network/api_endpoints.dart +++ b/frontend/mining-app/lib/core/network/api_endpoints.dart @@ -34,9 +34,9 @@ class ApiEndpoints { static String transfer(String accountSequence) => '/api/v2/trading/accounts/$accountSequence/transfer'; - // Contribution Service 2.0 (Kong路由: /api/v2/contribution) + // Contribution Service 2.0 (Kong路由: /api/v2/contribution -> /api/v1/contributions) static String contribution(String accountSequence) => - '/api/v2/contribution/$accountSequence'; + '/api/v2/contribution/accounts/$accountSequence'; static String contributionRecords(String accountSequence) => - '/api/v2/contribution/$accountSequence/records'; + '/api/v2/contribution/accounts/$accountSequence/records'; }