add column and alias are separate
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
//! What can be done to a table once it exists, as one page per decision.
|
||||
//!
|
||||
//! Adding columns, dropping the table, copying its profile, generating tables
|
||||
//! from a template and reading the rename history are five different jobs, and
|
||||
//! they used to be five panels stacked on one `/admin/table-definition`
|
||||
//! Adding columns, presenting columns, dropping the table, copying its profile,
|
||||
//! generating tables from a template and reading the rename history are six
|
||||
//! different jobs, and they used to be panels stacked on one `/admin/table-definition`
|
||||
//! workspace — which meant that after creating a table you landed on a screen
|
||||
//! where finding the delete form meant scrolling past five other forms.
|
||||
//!
|
||||
@@ -30,13 +30,18 @@ use crate::AppState;
|
||||
pub(crate) fn router() -> Router<AppState> {
|
||||
Router::new()
|
||||
// Table-scoped.
|
||||
.route("/admin/tables/columns", get(logic::columns_page))
|
||||
.route("/admin/tables/columns", post(logic::add_columns))
|
||||
.route(
|
||||
"/admin/tables/columns/builder",
|
||||
"/admin/tables/columns/add",
|
||||
get(logic::add_columns_page).post(logic::add_columns),
|
||||
)
|
||||
.route(
|
||||
"/admin/tables/columns/add/builder",
|
||||
post(logic::update_columns),
|
||||
)
|
||||
.route("/admin/tables/presentation", post(logic::set_column_presentation))
|
||||
.route(
|
||||
"/admin/tables/presentation",
|
||||
get(logic::presentation_page).post(logic::set_column_presentation),
|
||||
)
|
||||
.route("/admin/tables/delete", get(logic::delete_page))
|
||||
.route("/admin/tables/delete", post(logic::delete_table))
|
||||
// Profile-scoped.
|
||||
|
||||
Reference in New Issue
Block a user