From f32d268494ec5d1e3138045187605cf309df0034 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Fri, 3 Feb 2023 10:27:29 +0800 Subject: [PATCH] Revised the order and sorting routes from "/base/" to "/bases/". --- src/accounting/account/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/accounting/account/views.py b/src/accounting/account/views.py index 8c5de72..e2fd9b0 100644 --- a/src/accounting/account/views.py +++ b/src/accounting/account/views.py @@ -168,7 +168,7 @@ def delete_account(account: Account) -> redirect: return redirect(or_next(url_for("accounting.account.list"))) -@bp.get("/base/", endpoint="order") +@bp.get("/bases/", endpoint="order") @has_permission(can_edit) def show_account_order(base: BaseAccount) -> str: """Shows the order of the accounts under a same base account. @@ -179,7 +179,7 @@ def show_account_order(base: BaseAccount) -> str: return render_template("accounting/account/order.html", base=base) -@bp.post("/base/", endpoint="sort") +@bp.post("/bases/", endpoint="sort") @has_permission(can_edit) def sort_accounts(base: BaseAccount) -> redirect: """Reorders the accounts under a base account.