|
|
@ -4,11 +4,8 @@ module.exports = function (app) {
|
|
|
|
app.use(
|
|
|
|
app.use(
|
|
|
|
'/api',
|
|
|
|
'/api',
|
|
|
|
createProxyMiddleware({
|
|
|
|
createProxyMiddleware({
|
|
|
|
target: 'http://localhost:8090',
|
|
|
|
|
|
|
|
changeOrigin: true,
|
|
|
|
changeOrigin: true,
|
|
|
|
pathRewrite: {
|
|
|
|
target: 'http://localhost:8090'
|
|
|
|
'^/api': ''
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
);
|
|
|
|
);
|
|
|
|
};
|
|
|
|
};
|
|
|
|