web routing is POG now
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user