def api_upload(): is_valid_user, user, debug = api_handler.validate_user(flask.request) if not is_valid_user: return flask.make_response( flask.jsonify({"Failure": "Invalid username or password."}), 400) api_response = api_handler.api_upload(flask.request, user) return api_response
def api_upload(): api_response = api_handler.api_upload(flask.request) return api_response