fix: 修复contribution-service路由映射
- Kong: /api/v2/contribution -> /api/v1/contributions (strip_path) - mining-app: 添加/accounts前缀匹配controller路径 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
1256bc2fdd
commit
73381a4376
|
|
@ -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 - 挖矿服务
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue