fixes
This commit is contained in:
@@ -38,9 +38,18 @@ pub(crate) fn router() -> Router<AppState> {
|
||||
"/admin/tables/columns/add/builder",
|
||||
post(logic::update_columns),
|
||||
)
|
||||
// Naming a column and ordering the columns are one backend call but two
|
||||
// forms, because a request that carries both is a request in which a
|
||||
// stale alias can ride along with an unrelated edit. See
|
||||
// `state::AliasForm`.
|
||||
.route("/admin/tables/presentation", get(logic::presentation_page))
|
||||
.route(
|
||||
"/admin/tables/presentation",
|
||||
get(logic::presentation_page).post(logic::set_column_presentation),
|
||||
"/admin/tables/presentation/alias",
|
||||
post(logic::set_column_alias),
|
||||
)
|
||||
.route(
|
||||
"/admin/tables/presentation/order",
|
||||
post(logic::set_column_order),
|
||||
)
|
||||
.route("/admin/tables/delete", get(logic::delete_page))
|
||||
.route("/admin/tables/delete", post(logic::delete_table))
|
||||
|
||||
Reference in New Issue
Block a user