MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / update_cache_enabled

Function update_cache_enabled

src/api/admin.py:1717–1729  ·  view source on GitHub ↗

Update cache enabled status

(
    request: dict,
    token: str = Depends(verify_admin_token)
)

Source from the content-addressed store, hash-verified

1715@router.get("/health")
1716async 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")
1725async 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")
1731async def get_logs(limit: int = 100, token: str = Depends(verify_admin_token)):
1732 """Get lightweight request logs for list view"""

Callers

nothing calls this directly

Calls 3

update_cache_configMethod · 0.80

Tested by

no test coverage detected