v2.2.1 — 添加健康检查 + Gitea Actions CI/CD 自动部署

This commit is contained in:
mac
2026-07-28 20:24:09 +08:00
parent 979e7fd097
commit 9fff01a272
2 changed files with 139 additions and 0 deletions

7
app.py
View File

@@ -406,6 +406,13 @@ def api_calendar_sync_all():
return jsonify({'ok': True, 'data': results, 'saved_days': saved_weeks})
# ── 健康检查 ──────────────────────────────────────────
@app.route('/api/health')
def api_health():
return jsonify({'ok': True, 'service': 'ziwei-power'})
# ── 启动 ──────────────────────────────────────────────
if __name__ == '__main__':