|
|
/**
|
|
|
* router of sub app product
|
|
|
* @author: xuqi<qi.xu@yoho.cn>
|
|
|
* @date: 2016/05/06
|
|
|
*/
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
const router = require('express').Router();
|
|
|
const cRoot = './controllers';
|
|
|
|
|
|
// 商品详情controller
|
|
|
const detail = require(`${cRoot}/detail`);
|
|
|
|
|
|
// routers
|
|
|
router.get('/detail/:id', detail.index);
|
|
|
|
|
|
module.exports = router; |
|
|
\ No newline at end of file |
|
|
/**
|
|
|
* router of sub app product
|
|
|
* @author: xuqi<qi.xu@yoho.cn>
|
|
|
* @date: 2016/05/06
|
|
|
*/
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
const router = require('express').Router();
|
|
|
const cRoot = './controllers';
|
|
|
|
|
|
// 商品详情controller
|
|
|
const detail = require(`${cRoot}/detail`);
|
|
|
|
|
|
// routers
|
|
|
router.get('/detail/:id/:gid', detail.index);
|
|
|
|
|
|
module.exports = router; |
...
|
...
|
|