From 757cbc8740e6bafc680735341e66ff45d91f6ea0 Mon Sep 17 00:00:00 2001 From: selfrelease Date: Sat, 15 Aug 2026 14:34:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=20/api/v1/health=20?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=EF=BC=8C=E4=BF=AE=E5=A4=8D=20deploy.sh=20?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=20404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- backend/src/app.ts | 5 +++++ 1 file changed, 5 insertions(+) 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) // 路由挂载