saunter.js 577 Bytes
/**
 * saunter页控制器文件
 * @author: xuqi(qi.xu@yoho.cn)
 * @date: 2015/3/27
 */
var data = require('../../public/js/data')('saunter');

exports.show = function(req, res) {
    res.render('pages/saunter', {
        data: data,
        layout: '../layouts/layout',
        css: '../css/saunter.css',
        usejs: 'saunter/footer'
    });
};

exports.optimize = function(req, res) {
    res.render('pages/saunter-optimize', {
        data: data,
        layout: '../layouts/layout',
        css: '../css/saunter.css',
        usejs: 'saunter/optimize-footer'
    });
};