Showing
2 changed files
with
23 additions
and
0 deletions
apps/home/controllers/index.js
0 → 100644
1 | +/** | ||
2 | + * 主页 | ||
3 | + * @author: Bi Kai<kai.bi@yoho.cn> | ||
4 | + * @date: 2016/05/09 | ||
5 | + */ | ||
6 | +'use strict'; | ||
7 | +const _ = require('lodash'); | ||
8 | +const helpers = global.yoho.helpers; | ||
9 | + | ||
10 | +/** | ||
11 | + * 频道选择页 | ||
12 | + */ | ||
13 | +const component = { | ||
14 | + index: (req, res, next) => { | ||
15 | + res.render('index', { | ||
16 | + module: 'example', | ||
17 | + page: 'home' | ||
18 | + }); | ||
19 | + } | ||
20 | +}; | ||
21 | + | ||
22 | +module.exports = component; |
apps/home/views/action/index.hbs
0 → 100644
1 | +<h1>test</h1> |
-
Please register or login to post a comment