14 lines
330 B
Python
14 lines
330 B
Python
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", {}),
|
|
}
|