intercept /news with a notice

This commit is contained in:
Quincy Larson
2016-04-06 13:49:39 -07:00
parent 6f9b6d7f2b
commit fcebd37a01
3 changed files with 14 additions and 1 deletions

View File

@ -43,6 +43,7 @@ module.exports = function(app) {
router.get('/how-nonprofit-projects-work', howNonprofitProjectsWork);
router.get('/code-of-conduct', codeOfConduct);
router.get('/academic-honesty', academicHonesty);
router.get('/news', news);
router.get(
'/the-fastest-web-page-on-the-internet',
@ -284,6 +285,12 @@ module.exports = function(app) {
});
}
function news(req, res) {
res.render('resources/camper-news-deprecated', {
title: 'Camper News'
});
}
function twitch(req, res) {
res.redirect('https://twitch.tv/freecodecamp');
}