from fastapi import APIRouter from backend.app.db import operations router = APIRouter(prefix="/api", tags=["system"]) @router.get("/health") async def health(): return {"ok": await operations.ping() == 1}