def decorated(*args, **kwargs): data, status = Auth.check_user_credentials(request.json) if status != 200: return data return f(*args, **kwargs)
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"