diff --git a/backend/src/app.ts b/backend/src/app.ts index fe32e68..860bda5 100644 --- a/backend/src/app.ts +++ b/backend/src/app.ts @@ -35,6 +35,11 @@ app.get('/health', (_req, res) => { res.json({ success: true, data: { status: 'ok', timestamp: new Date().toISOString() } }) }) +// deploy.sh 验证脚本检查 /api/v1/health +app.get('/api/v1/health', (_req, res) => { + res.json({ success: true, data: { status: 'ok', timestamp: new Date().toISOString() } }) +}) + app.use('/api/v1', apiLimiter) // 路由挂载