Spaces:
Sleeping
Sleeping
| import logging | |
| from fastapi import APIRouter, Request | |
| from app.services.cache import get_cache_stats, reset_cache_stats | |
| logger = logging.getLogger(__name__) | |
| router = APIRouter(prefix="/api/admin", tags=["admin"]) | |
| async def cache_stats(): | |
| return get_cache_stats() | |
| async def reset_stats(): | |
| reset_cache_stats() | |
| return {"status": "ok"} | |