diff --git a/app/api/views/mailbox.py b/app/api/views/mailbox.py index d235d3905..bb1e94e4a 100644 --- a/app/api/views/mailbox.py +++ b/app/api/views/mailbox.py @@ -71,7 +71,7 @@ def create_mailbox(): ) -@api_bp.route("/mailboxes/", methods=["DELETE"]) +@api_bp.route("/mailboxes/", methods=["DELETE"]) @require_api_auth def delete_mailbox(mailbox_id): """ @@ -103,7 +103,7 @@ def delete_mailbox(mailbox_id): return jsonify(deleted=True), 200 -@api_bp.route("/mailboxes/", methods=["PUT"]) +@api_bp.route("/mailboxes/", methods=["PUT"]) @require_api_auth def update_mailbox(mailbox_id): """ diff --git a/app/api/views/notification.py b/app/api/views/notification.py index d71856cc8..4d800dca3 100644 --- a/app/api/views/notification.py +++ b/app/api/views/notification.py @@ -60,7 +60,7 @@ def get_notifications(): ) -@api_bp.route("/notifications//read", methods=["POST"]) +@api_bp.route("/notifications//read", methods=["POST"]) @require_api_auth def mark_as_read(notification_id): """ diff --git a/app/api/views/phone.py b/app/api/views/phone.py index 9af3fd1e2..024a320b7 100644 --- a/app/api/views/phone.py +++ b/app/api/views/phone.py @@ -9,7 +9,7 @@ ) -@api_bp.route("/phone/reservations/", methods=["GET", "POST"]) +@api_bp.route("/phone/reservations/", methods=["GET", "POST"]) @require_api_auth def phone_messages(reservation_id): """ diff --git a/app/dashboard/views/alias_contact_manager.py b/app/dashboard/views/alias_contact_manager.py index 5f478d9bb..0f5e9671c 100644 --- a/app/dashboard/views/alias_contact_manager.py +++ b/app/dashboard/views/alias_contact_manager.py @@ -229,7 +229,7 @@ def delete_contact(alias: Alias, contact_id: int): flash(f"Reverse-alias for {delete_contact_email} has been deleted", "success") -@dashboard_bp.route("/alias_contact_manager//", methods=["GET", "POST"]) +@dashboard_bp.route("/alias_contact_manager//", methods=["GET", "POST"]) @login_required def alias_contact_manager(alias_id): highlight_contact_id = None diff --git a/app/phone/views/phone_reservation.py b/app/phone/views/phone_reservation.py index 949bcb971..5cae6d225 100644 --- a/app/phone/views/phone_reservation.py +++ b/app/phone/views/phone_reservation.py @@ -9,7 +9,7 @@ current_user: User -@phone_bp.route("/reservation/", methods=["GET", "POST"]) +@phone_bp.route("/reservation/", methods=["GET", "POST"]) @login_required def reservation_route(reservation_id: int): reservation: PhoneReservation = PhoneReservation.get(reservation_id)