fix(mining-wallet-service): move share-pool-balance route before :type param route

NestJS routes are matched in order, so the parameterized :type route
was capturing 'share-pool-balance' before it could reach the public
endpoint, causing 401 errors.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-15 06:22:30 -08:00
parent b5899497ea
commit 109986ba49
1 changed files with 8 additions and 8 deletions

View File

@ -34,6 +34,14 @@ export class PoolAccountController {
return this.poolAccountService.findAll();
}
@Get('share-pool-balance')
@Public()
@ApiOperation({ summary: '获取积分股池总余量' })
@ApiResponse({ status: 200, description: '积分股池A+B的总余量' })
async getSharePoolTotalBalance() {
return this.poolAccountService.getSharePoolTotalBalance();
}
@Get('stats')
@AdminOnly()
@ApiOperation({ summary: '获取池账户统计' })
@ -104,14 +112,6 @@ export class PoolAccountController {
});
}
@Get('share-pool-balance')
@Public()
@ApiOperation({ summary: '获取积分股池总余量' })
@ApiResponse({ status: 200, description: '积分股池A+B的总余量' })
async getSharePoolTotalBalance() {
return this.poolAccountService.getSharePoolTotalBalance();
}
@Post('burn')
@AdminOnly()
@ApiOperation({ summary: '销毁到黑洞池' })