nodeclub/controllers/static.js
alsotang d04ca65d98 add more tests
* test/controllers/message.test.js
* test/controllers/reply.test.js
* test/support/support.js
2014-09-27 00:10:39 +08:00

27 lines
583 B
JavaScript

var multiline = require('multiline');
// static page
// About
exports.about = function (req, res, next) {
res.render('static/about', {
pageTitle: '关于我们'
});
};
// FAQ
exports.faq = function (req, res, next) {
res.render('static/faq');
};
exports.robots = function (req, res, next) {
res.type('text/plain');
res.send(multiline(function () {;
/*
# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
#
# To ban all spiders from the entire site uncomment the next two lines:
# User-Agent: *
# Disallow: /
*/
}));
};