fix 打开 ota 授权
Docker Build and Push / build-image (push) Successful in 2m51s

This commit is contained in:
cheney
2026-08-07 16:24:10 +08:00
parent a5bc8ef1f1
commit 22a36fb213
5 changed files with 671 additions and 19 deletions
+1 -9
View File
@@ -97,14 +97,6 @@ router.get('/ota/manifest-web', (_req, res) => {
})
})
// GET /api/ota/info - 诊断/自检
router.get('/ota/info', (_req, res) => {
const dir = resolveOtaDir()
const latest = readLatest()
res.json({
ota_dir: dir,
latest,
})
})
// GET /api/ota/info 已删除: 诊断接口会暴露服务器路径与签名, 且无调用方
export default router