update privacy, terms, code of conduct and add links to about page

This commit is contained in:
Quincy Larson
2016-01-13 15:37:00 -06:00
committed by Berkeley Martinez
parent 97b614e467
commit 6d23e4931b
5 changed files with 276 additions and 147 deletions

View File

@ -36,7 +36,9 @@ module.exports = function(app) {
router.get('/stories', showTestimonials);
router.get('/all-stories', showAllTestimonials);
router.get('/about', showAbout);
router.get('/terms-and-privacy', termsAndPrivacy);
router.get('/terms', terms);
router.get('/privacy', privacy);
router.get('/code-of-conduct', codeOfConduct);
router.get(
'/the-fastest-web-page-on-the-internet',
theFastestWebPageOnTheInternet
@ -203,11 +205,23 @@ module.exports = function(app) {
});
}
function termsAndPrivacy(req, res) {
res.render('resources/terms-and-privacy', {
title: 'Terms of Service, Privacy Policy, and Code of Conduct'
});
}
function terms(req, res) {
res.render('resources/terms-of-service', {
title: 'Terms of Service'
});
}
function privacy(req, res) {
res.render('resources/privacy', {
title: 'Privacy'
});
}
function codeOfConduct(req, res) {
res.render('resources/code-of-conduct', {
title: 'Code of Conduct'
});
}
function theFastestWebPageOnTheInternet(req, res) {
res.render('resources/the-fastest-web-page-on-the-internet', {