/**
* controller 入口
* @author: feng.chen<feng.chen@yoho.cn>
* @date: 2017/04/13
*/
module.exports = (req, res, next) => {
if (!req.user.uid) {
return res.status(401).json({
code: 401,
message: '抱歉,您暂未登录!',
data: {
refer: '/login',
},
});
}
next();
};