Update cache enabled status
(
request: dict,
token: str = Depends(verify_admin_token)
)
| 1715 | @router.get("/health") |
| 1716 | async def health_check(): |
| 1717 | """Public health check endpoint - no auth required""" |
| 1718 | try: |
| 1719 | return await build_public_health_snapshot(db) |
| 1720 | except Exception: |
| 1721 | return {"backend_running": True, "has_active_tokens": False} |
| 1722 | |
| 1723 | |
| 1724 | @router.get("/api/stats") |
| 1725 | async def get_stats(token: str = Depends(verify_admin_token)): |
| 1726 | """Get statistics for dashboard""" |
| 1727 | return await db.get_dashboard_stats() |
| 1728 | |
| 1729 | |
| 1730 | @router.get("/api/logs") |
| 1731 | async def get_logs(limit: int = 100, token: str = Depends(verify_admin_token)): |
| 1732 | """Get lightweight request logs for list view""" |
nothing calls this directly
no test coverage detected