From ccea09bf096fd9571d2b78c19ff40ecb14d6f8c8 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Sun, 10 May 2026 13:43:02 +0200 Subject: [PATCH] moved table endpoints into /tables/ --- stand.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stand.py b/stand.py index 03084b7..17c5974 100755 --- a/stand.py +++ b/stand.py @@ -98,11 +98,11 @@ def main(): label="pgroup", options=sorted(pgroups), with_input=True, - on_change=lambda e: ui.navigate.to(e.value) + on_change=lambda e: ui.navigate.to(f"/tables/{e.value}") ) -@ui.page("/{pgroup}") +@ui.page("/tables/{pgroup}") def table(pgroup: PGroup): pgroups = app.storage.user.get("pgroups", set()) if pgroup in pgroups: @@ -145,7 +145,7 @@ def table_deny(pgroup): ui.label(f"access to {pgroup} denied").classes("text-2xl") -@router.post("/{pgroup}/append") +@router.post("/tables/{pgroup}/append") def append(pgroup: PGroup, row: dict[str, Any]): now = datetime.now()