Correctly handle customized server name in admin settings dialog.

This commit is contained in:
Leo Vasanko
2026-02-04 20:15:56 +00:00
parent 69c26ff85b
commit 5b4be95ace
3 changed files with 34 additions and 10 deletions
+9
View File
@@ -163,6 +163,15 @@ def subscribe(uuid, ws):
)
@bp.get("config")
async def get_config(request):
await auth.verify(request, privileged=True)
return json({
"name": config.config.name,
"public": config.config.public,
})
@bp.put("config/public")
async def update_public(request):
await auth.verify(request, privileged=True)