app.js
410 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';
headerModel.requestHeaderData(channel).then(result => {
res.render('app', result);
}).catch(next);
};
module.exports = {
index
};