Authored by 陈峰

fix gender default

... ... @@ -20,10 +20,7 @@ exports.index = (req, res) => {
/* 查询 产品列表 */
exports.fetchProducts = (req, res, next) => {
const params = req.query;
params.gender = '';
model.products(params)
model.products(req.query)
.then(result => res.json(result))
.catch(next);
};
... ...
... ... @@ -4,15 +4,11 @@
* @author: Aiden Xu<aiden.xu@yoho.cn>
* @date: 2016/4/27
*/
const channelGender = require('./doraemon/middleware/channel-gender').channelGender;
module.exports = app => {
app.use('/', require('./apps/channel')); // 一级频道模块
// 商品模块
app.use('/'
, channelGender
, require('./apps/product')
);
app.use('/', require('./apps/product'));
app.use('/', require('./apps/me')); // 个人中心
app.use('/api', require('./apps/api')); // 各模块公有 API
app.use('/editorial', require('./apps/editorial')); // 资讯
... ...