code: function getProxyMiddleware(context, uri) {
    const pathRewrite = {};
    pathRewrite[`^${context}`] = url.parse(uri).pathname;
  
    return proxy({
      target: getHost(uri),
      changeOrigin: true,
      logLevel: 'warn',
      pathRewrite: pathRewrite,
    });
  }
docs: 获取代理中间件
  @param  {String} context 要代理的path
  @param  {String} uri 代理到的uri
  @return {Function} 中间件方法