Your Name
feat: UI improvements and error suppression - Enhanced dashboard and market pages with improved header buttons, logo, and currency symbol display - Stopped animated ticker - Removed pie chart legends - Added error suppressor for external service errors (SSE, Permissions-Policy warnings) - Improved header button prominence and icon appearance - Enhanced logo with glow effects and better design - Fixed currency symbol visibility in market tables
8b7b267 Download api/resources_endpoint.py from Really-amin/Datasourceforcryptocurrency-2-backup-20260607: direct link, hf CLI and curl.
- Browser
- Download file 744 Bytes
-
https://huggingface.co/spaces/Really-amin/Datasourceforcryptocurrency-2-backup-20260607/resolve/main/api/resources_endpoint.py
- Command line
-
hf download hf://spaces/Really-amin/Datasourceforcryptocurrency-2-backup-20260607/api/resources_endpoint.py
-
curl -L -o resources_endpoint.py https://huggingface.co/spaces/Really-amin/Datasourceforcryptocurrency-2-backup-20260607/resolve/main/api/resources_endpoint.py
744 Bytes
| """ | |
| Resources Endpoint - API router for resource statistics | |
| """ | |
| from fastapi import APIRouter | |
| from typing import Dict, Any | |
| from datetime import datetime | |
| import logging | |
| logger = logging.getLogger(__name__) | |
| router = APIRouter(prefix="/api/resources", tags=["resources"]) | |
| async def resources_stats() -> Dict[str, Any]: | |
| """Get resource statistics""" | |
| return { | |
| "total": 0, | |
| "active": 0, | |
| "categories": [], | |
| "timestamp": datetime.utcnow().isoformat() + "Z" | |
| } | |
| async def resources_list() -> Dict[str, Any]: | |
| """Get list of all resources""" | |
| return { | |
| "resources": [], | |
| "total": 0, | |
| "timestamp": datetime.utcnow().isoformat() + "Z" | |
| } | |