diff --git a/luncho/blueprints/groups.py b/luncho/blueprints/groups.py index c0e8c9f..af170b6 100644 --- a/luncho/blueprints/groups.py +++ b/luncho/blueprints/groups.py @@ -223,7 +223,7 @@ def delete_group(group_id): group_users = Blueprint('group_users', __name__) -@group_users.route('/users/', methods=['PUT']) +@group_users.route('/users/', methods=['POST']) @ForceJSON(required=['usernames']) @auth def add_users_to_group(group_id): diff --git a/luncho/blueprints/users.py b/luncho/blueprints/users.py index 9b0d12f..9658fdc 100644 --- a/luncho/blueprints/users.py +++ b/luncho/blueprints/users.py @@ -40,7 +40,7 @@ class UsernameAlreadyExistsException(LunchoException): self.message = 'Username already exists' -@users.route('', methods=['PUT']) +@users.route('', methods=['POST']) @ForceJSON(required=['username', 'full_name', 'password']) def create_user(): """Create a new user. @@ -82,7 +82,7 @@ def create_user(): return jsonify(status='OK') -@users.route('', methods=['POST']) +@users.route('', methods=['PUT']) @ForceJSON() @auth def update_user():