app.js
419 Bytes
/**
* 下载app页controller
* @author: yyq<yanqing.yang@yoho.cn>
* @date: 2017/3/27
*/
'use strict';
const headerModel = require('../../../doraemon/models/header');
const index = (req, res, next) => {
let channel = req.cookies._Channel || 'boys';
req.ctx(headerModel).requestHeaderData(channel).then(result => {
res.render('app', result);
}).catch(next);
};
module.exports = {
index
};