Files
Nat20-Notes/backend/app/routers/diagnostics.py

12 lines
280 B
Python

from fastapi import APIRouter
from ..diagnostics import run_diagnostics
router = APIRouter(prefix="/api/diagnostics", tags=["diagnostics"])
@router.get("")
def get_diagnostics():
checks = run_diagnostics()
return {"ok": all(c["ok"] for c in checks), "checks": checks}