router.js 459 Bytes
/**
 * router of sub app partial
 * @author: xuqi<qi.xu@yoho.cn>
 * @date: 2016/06/30
 */

'use strict';

const router = require('express').Router(); // eslint-disable-line
const cRoot = './controllers';
const list = require(cRoot + '/list');
const item = require(cRoot + '/item');

// Your controller here
router.get('/list', list.index); // 组件demo页

router.get(/\/item\/([\d]+)_([\d]+).html/, item.index); // 商品详情页

module.exports = router;