mirror of
https://github.com/cnodejs/nodeclub.git
synced 2025-12-08 19:55:55 +00:00
38 lines
781 B
JavaScript
38 lines
781 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.getstart = function (req, res) {
|
|
res.render('static/getstart', {
|
|
pageTitle: 'Node.js 新手入门'
|
|
});
|
|
};
|
|
|
|
|
|
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: /
|
|
*/
|
|
}));
|
|
};
|
|
|
|
exports.api = function (req, res, next) {
|
|
res.render('static/api');
|
|
};
|