router.js
678 Bytes
/**
* 路由处理文件
* @author: xuqi(qi.xu@yoho.cn)
* @date: 2015/3/27
*/
var saunter = require('./views/controller/saunter'),
tag = require('./views/controller/tag'),
template = require('./views/controller/template');
module.exports = function(app) {
app.get('/', saunter.show); //着陆页
app.get('/optimize', saunter.optimize); //优化着陆页
app.get('/tag', tag.show); //标签页
app.get('/tpl', template.show); //模板页
app.get('/tpl/readTpl', template.readTpl); //读取模板
app.get('/tpl/classification', template.readClassification); //读取分类数据
app.get('/tpl/search', template.search); //筛选查询
};