Merge branch 'master' of https://github.com/YunaiV/onemall into feature-sca-1.0.0

This commit is contained in:
YunaiV 2020-04-14 20:25:38 +08:00
commit 954979b586
2 changed files with 16 additions and 16 deletions

View File

@ -2,32 +2,32 @@
module.exports = { module.exports = {
'/admin-api/': { '/admin-api/': {
target: 'http://api.shop.iocoder.cn:18099', target: 'http://api.shop.iocoder.cn',
changeOrigin: true, changeOrigin: true,
pathRewrite: {}, pathRewrite: {},
}, },
'/product-api/': { '/product-api/': {
target: 'http://api.shop.iocoder.cn:18099', target: 'http://api.shop.iocoder.cn',
changeOrigin: true, changeOrigin: true,
pathRewrite: {}, pathRewrite: {},
}, },
'/order-api/': { '/order-api/': {
target: 'http://api.shop.iocoder.cn:18099', target: 'http://api.shop.iocoder.cn',
changeOrigin: true, changeOrigin: true,
pathRewrite: {}, pathRewrite: {},
}, },
'/promotion-api/': { '/promotion-api/': {
target: 'http://api.shop.iocoder.cn:18099', target: 'http://api.shop.iocoder.cn',
changeOrigin: true, changeOrigin: true,
pathRewrite: {}, pathRewrite: {},
}, },
'/pay-api/': { '/pay-api/': {
target: 'http://api.shop.iocoder.cn:18099', target: 'http://api.shop.iocoder.cn',
changeOrigin: true, changeOrigin: true,
pathRewrite: {}, pathRewrite: {},
}, },
'/user-api/': { '/user-api/': {
target: 'http://api.shop.iocoder.cn:18099', target: 'http://api.shop.iocoder.cn',
changeOrigin: true, changeOrigin: true,
pathRewrite: {}, pathRewrite: {},
}, },

View File

@ -37,27 +37,27 @@ const serviceRouter = function(requestUrl) {
const configProd = { const configProd = {
'/order-api': { '/order-api': {
prefix: '/order-api', prefix: '/order-api',
target: 'http://api.shop.iocoder.cn:18088/order-api', target: 'http://api.shop.iocoder.cn/order-api',
}, },
'/user-api': { '/user-api': {
prefix: '/user-api', prefix: '/user-api',
target: 'http://api.shop.iocoder.cn:18099/user-api', target: 'http://api.shop.iocoder.cn/user-api',
}, },
'/product-api': { '/product-api': {
prefix: '/product-api', prefix: '/product-api',
target: 'http://api.shop.iocoder.cn:18099/product-api', target: 'http://api.shop.iocoder.cn/product-api',
}, },
'/promotion-api': { '/promotion-api': {
prefix: '/promotion-api', prefix: '/promotion-api',
target: 'http://api.shop.iocoder.cn:18099/promotion-api', target: 'http://api.shop.iocoder.cn/promotion-api',
}, },
'/pay-api': { '/pay-api': {
prefix: '/pay-api', prefix: '/pay-api',
target: 'http://api.shop.iocoder.cn:18099/pay-api', target: 'http://api.shop.iocoder.cn/pay-api',
}, },
'/search-api': { '/search-api': {
prefix: '/search-api', prefix: '/search-api',
target: 'http://api.shop.iocoder.cn:18099/search-api', target: 'http://api.shop.iocoder.cn/search-api',
}, },
}; };