INNER CODE UNIT · Python
dashboard
tomascupr/sandstorm · src/sandstorm/main.py:278
async def dashboard():
return HTMLResponse(_DASHBOARD_HTML)
@app.get(
"/runs",
summary="List runs",
description="Returns recent agent runs, newest first.",
)
async def list_runs(token: str | None = Depends(verify_api_token)):
return run_store.list()
@app.get("/health", summary="Health check", description="Returns 200 if the server is running.")
async def health(deep: bool = Query(False, description="Run deep health checks")):
result: dict = {"status": "ok", "version": __version__}
if not deep:
return result