MCPcopy Index your code
hub / github.com/vastsa/FileCodeBox / update_config

Function update_config

apps/admin/views.py:484–498  ·  view source on GitHub ↗
(
    data: dict,
    config_service: ConfigService = Depends(get_config_service),
    file_service: FileService = Depends(get_file_service),
)

Source from the content-addressed store, hash-verified

482
483@admin_api.patch("/config/update")
484async 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")

Callers

nothing calls this directly

Calls 3

APIResponseClass · 0.90
update_configMethod · 0.80
record_admin_activityMethod · 0.80

Tested by

no test coverage detected