Add missing return code.

This commit is contained in:
Alexis Lahouze 2016-01-13 12:48:11 +01:00
parent 2cccb07c3d
commit 3927f7e398

View File

@ -123,7 +123,7 @@ class LoginResource(Resource):
@requires_auth @requires_auth
@marshal_with_field(Object(user_resource_fields)) @marshal_with_field(Object(user_resource_fields))
def get(self): def get(self):
return g.user return g.user, 200
api.add_resource(LoginResource, "/user/login") api.add_resource(LoginResource, "/user/login")