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:
parent
075c9aaa48
commit
52ddad1000
|
|
@ -87,8 +87,7 @@ services:
|
|||
routes:
|
||||
- name: planting-api
|
||||
paths:
|
||||
- /api/v1/plantings
|
||||
- /api/v1/trees
|
||||
- /api/v1/planting
|
||||
strip_path: false
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -24,6 +24,9 @@ async function bootstrap() {
|
|||
// 跨域配置
|
||||
app.enableCors();
|
||||
|
||||
// API 前缀
|
||||
app.setGlobalPrefix('api/v1');
|
||||
|
||||
// Swagger 配置
|
||||
const config = new DocumentBuilder()
|
||||
.setTitle('Reward Service API')
|
||||
|
|
|
|||
Loading…
Reference in New Issue