(
data: dict,
config_service: ConfigService = Depends(get_config_service),
file_service: FileService = Depends(get_file_service),
)
| 482 | |
| 483 | @admin_api.patch("/config/update") |
| 484 | async def update_config( |
| 485 | data: dict, |
| 486 | config_service: ConfigService = Depends(get_config_service), |
| 487 | file_service: FileService = Depends(get_file_service), |
| 488 | ): |
| 489 | data.pop("themesChoices", None) |
| 490 | await config_service.update_config(data) |
| 491 | await file_service.record_admin_activity( |
| 492 | action="config.update", |
| 493 | target_type="config", |
| 494 | target_name="system", |
| 495 | count=1, |
| 496 | meta={"fields": sorted(data.keys())}, |
| 497 | ) |
| 498 | return APIResponse() |
| 499 | |
| 500 | |
| 501 | @admin_api.get("/file/download") |
nothing calls this directly
no test coverage detected