CSOL-site/controllers/info.js

28 строки
614 B
JavaScript
Исходник Обычный вид История

const openbadger = require('../openbadger');
2013-03-25 00:52:09 +04:00
module.exports = function (app) {
2013-03-27 22:00:30 +04:00
app.get('/', function (req, res, next) {
2013-03-28 20:42:32 +04:00
res.render('home.html');
2013-03-27 22:00:30 +04:00
});
app.get('/about', openbadger.middleware('getOrgs'), function (req, res, next) {
var data = req.remote;
res.render('info/about.html', {
orgs: data.orgs
});
2013-03-25 00:52:09 +04:00
});
app.get('/privacy', function (req, res, next) {
2013-03-28 20:42:32 +04:00
res.render('info/privacy.html');
2013-03-25 00:52:09 +04:00
});
app.get('/terms', function (req, res, next) {
2013-03-28 20:42:32 +04:00
res.render('info/terms.html');
2013-03-25 00:52:09 +04:00
});
app.get('/faq', function (req, res, next) {
res.render('info/faq.html');
2013-03-25 00:52:09 +04:00
});
};