From e899cd0d166a4761ef04c875922c54aeb26d6acb Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 13 Aug 2022 23:28:20 +0200 Subject: [PATCH] Modif route API /user//edit. Fix #472 --- app/api/users.py | 4 ++-- tests/api/test_api_users.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/api/users.py b/app/api/users.py index 5c249b158..8b34901c7 100644 --- a/app/api/users.py +++ b/app/api/users.py @@ -124,8 +124,8 @@ def user_create(): return jsonify(user.to_dict()) -@bp.route("/user/edit/", methods=["POST"]) -@api_web_bp.route("/user/edit/", methods=["POST"]) +@bp.route("/user//edit", methods=["POST"]) +@api_web_bp.route("/user//edit", methods=["POST"]) @login_required @scodoc @permission_required(Permission.ScoUsersAdmin) diff --git a/tests/api/test_api_users.py b/tests/api/test_api_users.py index 8174a9fe3..82c6cdefc 100644 --- a/tests/api/test_api_users.py +++ b/tests/api/test_api_users.py @@ -94,7 +94,7 @@ def test_edit_users(api_admin_headers): def test_roles(api_admin_headers): """ Routes: /user/create - /user/edit/ + /user//edit """ admin_h = api_admin_headers user = POST_JSON(