INNER CODE UNIT · Python
health_check
ArcReel/ArcReel · server/app.py:704
async def health_check():
"""健康检查"""
return {"status": "ok", "message": "视频项目管理 WebUI 运行正常"}
@app.get("/agent-installation-guide.md", include_in_schema=False)
async def serve_agent_installation_guide(request: Request) -> Response:
"""动态渲染 Agent 安装指引,将 {{BASE_URL}} 替换为实际服务地址(无需认证)。"""
from fastapi.responses import PlainTextResponse
template_path = PROJECT_ROOT / "public" / "agent-installation-guide.md"
def _read() -> tuple[bool, str]:
if not template_path.exists():
return False, ""
return True, template_path.read_text(encoding="utf-8")
exists, template = await asyncio.to_thread(_read)