mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-07-08 07:41:57 +08:00
fix: update setConfig function to allow optional value and fix API endpoint
This commit is contained in:
@@ -29,7 +29,7 @@ async def set_config(
|
||||
request: Request,
|
||||
current_user: Annotated[User, Depends(get_current_active_user)],
|
||||
key: str = Form(...),
|
||||
value: str = Form(...),
|
||||
value: str = Form(""),
|
||||
):
|
||||
await ConfigService.set(key, value)
|
||||
return success(ConfigItem(key=key, value=value).model_dump())
|
||||
|
||||
Reference in New Issue
Block a user