express-http-proxy 的基础使用

const app = express()

app.use(matchPath, proxy(serverAddress, {
  proxyReqPathResolver: function(req) {
    return remainPath + req.url
  }
}))

 

posted @ 2018-12-28 21:59  樊顺  阅读(982)  评论(0编辑  收藏  举报