@app.app.route('/v1/plugin/<name>/<path:path>', methods=['GET', 'POST'])
def plugin(name, path):
    if (request.method == 'GET'):
        return api.get_plugin(name, path, request.headers, kwargs=request.args.to_dict())
    elif (request.method == 'POST'):
        return api.post_plugin(name, path, request.headers, request.get_json(), kwargs=request.args.to_dict())
    else:
        raise RuntimeError(('unsupported method ' + request.method))
@app.app.route('/v1/plugin/<name>/<path:path>', methods=['GET', 'POST'])
def plugin(name, path):
    if (request.method == 'GET'):
        return api.get_plugin(name, path, request.headers, kwargs=request.args.to_dict())
    elif (request.method == 'POST'):
        return api.post_plugin(name, path, request.headers, request.get_json(), kwargs=request.args.to_dict())
    else:
        raise RuntimeError(('unsupported method ' + request.method))