Use POST endpoint for updating a user attr

This commit is contained in:
Imdad Ahad
2016-11-10 12:07:29 +00:00
parent 31dfc36094
commit 8b64aa7e79
2 changed files with 3 additions and 3 deletions

View File

@@ -69,7 +69,7 @@ def update_user(user_id):
return jsonify(data=user_schema.dump(user_to_update).data), 200
@user.route('/<uuid:user_id>/update-attribute', methods=['PUT'])
@user.route('/<uuid:user_id>', methods=['POST'])
def update_user_attribute(user_id):
user_to_update = get_user_by_id(user_id=user_id)
req_json = request.get_json()