예제 #1
0
    def decorated(*args, **kwargs):

        data, status = Auth.check_user_credentials(request.json)
        if status != 200:
            return data

        return f(*args, **kwargs)
예제 #2
0
 def get(self):
     # get the post data
     post_data = request.json
     data, status = Auth.check_user_credentials(data=post_data)
     if (status == 200):
         return "test succesufle"
     return "test faiilud"