"use strict";

// cjs语法  引入代理中间件
var proxy = require('http-proxy-middleware');
module.exports = function (app) {
  app.use(proxy('/api', {
    target: 'http://1.14.206.164:28080',
    changeOrigin: true,
    pathRewrite: {
      '^/api': ''
    }
  }));
};