moved table endpoints into /tables/

This commit is contained in:
2026-05-10 13:43:02 +02:00
parent e7de8b0ad6
commit ccea09bf09
+3 -3
View File
@@ -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()