Authored by 周少峰

up version add erp2goods

@@ -68,5 +68,19 @@ module.exports = [ @@ -68,5 +68,19 @@ module.exports = [
68 'www' 68 'www'
69 ); 69 );
70 } 70 }
  71 + },
  72 + // erp2good
  73 + {
  74 + type: TYPE.rewrite,
  75 + origin: (req) => {
  76 + console.log(req.path);
  77 + return req.path === '/erp2goods'
  78 + },
  79 + target: '/common/erp2goods'
  80 + },
  81 + {
  82 + type: TYPE.redirect,
  83 + origin: '/index.html',
  84 + target: helpers.urlFormat('/')
71 } 85 }
72 ]; 86 ];
1 { 1 {
2 "name": "yohobuy-node", 2 "name": "yohobuy-node",
3 - "version": "5.5.18", 3 + "version": "5.5.22",
4 "private": true, 4 "private": true,
5 "description": "A New Yohobuy Project With Express", 5 "description": "A New Yohobuy Project With Express",
6 "repository": { 6 "repository": {