router.js
338 Bytes
/**
* 路由处理文件
* @author: liuyue(yue.liu@yoho.cn)
* @date: 2015/8/19
*/
var controllerPath = './views/controller/',
news = require(controllerPath + 'new'),
hotRank = require(controllerPath + 'hot-rank');
module.exports = function(app) {
app.get('/new', news.index);
app.get('/hot-rank', hotRank.index);
};