from fastapi import APIRouter router = APIRouter(prefix="/api/services", tags=["services"]) @router.get("/config") async def get_config(): from main import app_config settings = app_config.get_settings() return { "display": settings.get("display", {}), "refresh": settings.get("refresh", {}), }