web routing is POG now

This commit is contained in:
Priec
2026-08-12 23:40:14 +02:00
parent 10c8235420
commit f8e483efa8
28 changed files with 1015 additions and 697 deletions

View File

@@ -108,8 +108,11 @@ pub(crate) async fn create_table(
let result = definitions.post_table_definition(request).await;
match result {
Ok(response) if response.get_ref().success => {
// The admin panel, with the new table selected: it is the browser
// the actions on a table are reached from, so landing there is
// landing next to everything that can be done to it.
let location = format!(
"/admin/table-definition?profile={profile_name}&table={}",
"/admin?profile={profile_name}&table={}",
page.draft.table_name
);
let Ok(location) = HeaderValue::try_from(location) else {