Fix the user url.

Add test for authentication to test paths with path params
This commit is contained in:
Rebecca Law
2016-01-22 09:59:02 +00:00
parent 439127e897
commit 8fa1cac1c6
2 changed files with 23 additions and 7 deletions

View File

@@ -71,7 +71,7 @@ def verify_user_password(user_id):
@user.route('/<int:user_id>', methods=['GET'])
@user.route('/', methods=['GET'])
@user.route('', methods=['GET'])
def get_user(user_id=None):
try:
users = get_model_users(user_id=user_id)