fix(api-map): path配合,不需要前缀/ reviewed by张文文
底层使用node url.resolve , 根据common.js domains配置 api-map中path不需要/
Showing
1 changed file
with
3 additions
and
3 deletions
@@ -63,7 +63,7 @@ module.exports = { | @@ -63,7 +63,7 @@ module.exports = { | ||
63 | '/api/ufo/product/coupon': { | 63 | '/api/ufo/product/coupon': { |
64 | ufo: true, | 64 | ufo: true, |
65 | auth: true, | 65 | auth: true, |
66 | - path: '/couponCenter', // 测试环境'/ufo-gateway/couponCenter',线上'/couponCenter' | 66 | + path: 'couponCenter', // 测试环境'/ufo-gateway/couponCenter',线上'/couponCenter' |
67 | api: 'ufo.couponsInPrdDetail.list', | 67 | api: 'ufo.couponsInPrdDetail.list', |
68 | params: { | 68 | params: { |
69 | productId: {type: Number}, | 69 | productId: {type: Number}, |
@@ -77,7 +77,7 @@ module.exports = { | @@ -77,7 +77,7 @@ module.exports = { | ||
77 | '/api/ufo/product/couponTopList': { | 77 | '/api/ufo/product/couponTopList': { |
78 | ufo: true, | 78 | ufo: true, |
79 | auth: false, | 79 | auth: false, |
80 | - path: '/couponCenter', // 测试环境'/ufo-gateway/couponCenter',线上'/couponCenter' | 80 | + path: 'couponCenter', // 测试环境'/ufo-gateway/couponCenter',线上'/couponCenter' |
81 | api: 'ufo.couponTopListOfPrdDetail.list', | 81 | api: 'ufo.couponTopListOfPrdDetail.list', |
82 | params: { | 82 | params: { |
83 | productId: {type: Number}, | 83 | productId: {type: Number}, |
@@ -98,7 +98,7 @@ module.exports = { | @@ -98,7 +98,7 @@ module.exports = { | ||
98 | '/api/ufo/product/addsize': { | 98 | '/api/ufo/product/addsize': { |
99 | ufo: true, | 99 | ufo: true, |
100 | auth: true, | 100 | auth: true, |
101 | - path: '/ufoLive', | 101 | + path: 'ufoLive', |
102 | api: 'ufo.product.addSize', | 102 | api: 'ufo.product.addSize', |
103 | params: { | 103 | params: { |
104 | product_id: {type: Number}, // 商品id | 104 | product_id: {type: Number}, // 商品id |
-
Please register or login to post a comment