stats
backend.api.stats
Section titled “backend.api.stats”platform-wide statistics endpoints.
Functions
Section titled “Functions”get_platform_stats source
Section titled “get_platform_stats source”get_platform_stats(db: Annotated[AsyncSession, Depends(get_db)]) -> PlatformStatsget platform-wide statistics.
get_costs source
Section titled “get_costs source”get_costs() -> Responseproxy costs JSON from R2 to avoid CORS issues.
the costs.json file is generated daily by a GitHub Action and uploaded to R2. this endpoint proxies it so the frontend can fetch without CORS.
Classes
Section titled “Classes”PlatformStats source
Section titled “PlatformStats source”platform-wide statistics.