Authored by yyq

message router

/**
* 我的消息controller
* @author: yyq<yanqing.yang@yoho.cn>
* @date: 2016/8/29
*/
'use strict';
const index = (req, res, next) => {
let uid = req.user.uid;
// let page = req.query.page || 1;
if (!uid) {
return next();
}
res.send('success');
};
module.exports = {
index
};
... ...
... ... @@ -17,6 +17,7 @@ const helpers = global.yoho.helpers;
const commentController = require(`${cRoot}/comment`);
const consultController = require(`${cRoot}/consult`);
const complaintsController = require(`${cRoot}/complaints`);
const messageController = require(`${cRoot}/message`);
const returnsController = require(`${cRoot}/returns`);
const IndexController = require(`${cRoot}/Index`);
const CurrencyController = require(`${cRoot}/Currency`);
... ... @@ -134,6 +135,9 @@ router.get('/complaints', [getCommonHeader, getHomeNav], complaintsController.in
router.post('/complaints/submit', complaintsController.submit);
router.post('/complaints/cancel', complaintsController.cancel);
// 我的消息
router.get('/message', messageController.index);
// 我的退/换货
router.get('/returns', returnsController.index);
... ...