fix(api-gateway): correct Kong routes and add missing globalPrefix

- Kong: change /api/v1/plantings to /api/v1/planting (match controller)
- reward-service: add missing app.setGlobalPrefix('api/v1')

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-09 21:51:58 -08:00
parent 075c9aaa48
commit 52ddad1000
2 changed files with 4 additions and 2 deletions

View File

@ -87,8 +87,7 @@ services:
routes:
- name: planting-api
paths:
- /api/v1/plantings
- /api/v1/trees
- /api/v1/planting
strip_path: false
# ---------------------------------------------------------------------------

View File

@ -24,6 +24,9 @@ async function bootstrap() {
// 跨域配置
app.enableCors();
// API 前缀
app.setGlobalPrefix('api/v1');
// Swagger 配置
const config = new DocumentBuilder()
.setTitle('Reward Service API')