示例#1
0
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
示例#2
0
文件: routes.py 项目: malhuda2/nyaase
def api_upload():
    api_response = api_handler.api_upload(flask.request)
    return api_response