Initial commit: Nat20 Notes — TTRPG session transcription & summarization
This commit is contained in:
11
backend/app/routers/diagnostics.py
Normal file
11
backend/app/routers/diagnostics.py
Normal file
@@ -0,0 +1,11 @@
|
||||
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}
|
||||
Reference in New Issue
Block a user