mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-09 03:18:18 +00:00
refac
This commit is contained in:
parent
55a572cd39
commit
1c1c8b18e5
1 changed files with 2 additions and 1 deletions
|
|
@ -49,8 +49,9 @@ class ImportConfigForm(BaseModel):
|
|||
|
||||
|
||||
@router.post('/import', response_model=dict)
|
||||
async def import_config(form_data: ImportConfigForm, user=Depends(get_admin_user)):
|
||||
async def import_config(request: Request, form_data: ImportConfigForm, user=Depends(get_admin_user)):
|
||||
await async_save_config(form_data.config)
|
||||
request.app.state.config._sync_to_redis()
|
||||
return get_config()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue