15 lines
450 B
JavaScript
15 lines
450 B
JavaScript
|
const {createProxyMiddleware} = require('http-proxy-middleware')
|
||
|
module.exports=function(app){
|
||
|
app.use(
|
||
|
createProxyMiddleware('/ticai',{
|
||
|
target:'http://localhost:8090/',
|
||
|
changeOrigin:false,
|
||
|
pathRewrite:{'^/ticai':''}
|
||
|
}),
|
||
|
createProxyMiddleware('/oauth',{
|
||
|
target:'http://localhost:1112',
|
||
|
changeOrigin:true,
|
||
|
pathRewrite:{'^/oauth':''}
|
||
|
})
|
||
|
)
|
||
|
}
|