v2.2.1 — 添加健康检查 + Gitea Actions CI/CD 自动部署
This commit is contained in:
7
app.py
7
app.py
@@ -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__':
|
||||
|
||||
Reference in New Issue
Block a user