fix: 增加 /api/v1/health 路由,修复 deploy.sh 验证 404

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
selfrelease
2026-08-15 14:34:39 +08:00
parent e1b5ae9aab
commit 757cbc8740
+5
View File
@@ -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)
// 路由挂载