goods.js 758 B

1234567891011121314151617
  1. 'use strict';
  2. // 路由配置
  3. const path = require('path');
  4. const regPath = path.resolve('app', 'public', 'routerRegister');
  5. const routerRegister = require(regPath);
  6. const rkey = 'viewGoods';
  7. const ckey = 'view.goods';
  8. const keyZh = '商品相关视图';
  9. const routes = [
  10. { method: 'get', path: `${rkey}/iatg`, controller: `${ckey}.iatg`, name: `${ckey}iatg`, zh: '首页活动标签商品' },
  11. { method: 'post', path: `${rkey}/goodsDetail`, controller: `${ckey}.goodsDetail`, name: `${ckey}GoodsDetail`, zh: '商品页' },
  12. { method: 'get', path: `${rkey}/indexGoodsList`, controller: `${ckey}.indexGoodsList`, name: `${ckey}indexGoodsList`, zh: '首页商品列表' },
  13. ];
  14. module.exports = app => {
  15. routerRegister(app, routes, keyZh, rkey, ckey);
  16. };