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:
@@ -35,6 +35,11 @@ app.get('/health', (_req, res) => {
|
|||||||
res.json({ success: true, data: { status: 'ok', timestamp: new Date().toISOString() } })
|
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)
|
app.use('/api/v1', apiLimiter)
|
||||||
|
|
||||||
// 路由挂载
|
// 路由挂载
|
||||||
|
|||||||
Reference in New Issue
Block a user