fix(main): static page links and constantStrings

This commit is contained in:
dhcodes
2017-06-23 14:12:58 -05:00
parent 4c016216b9
commit 63a147257b
6 changed files with 21 additions and 120 deletions

View File

@@ -20,8 +20,6 @@ module.exports = function(app) {
'/the-fastest-web-page-on-the-internet',
theFastestWebPageOnTheInternet
);
noLangRouter.get('/shop/cancel-stickers', cancelStickers);
noLangRouter.get('/shop/confirm-stickers', confirmStickers);
router.get('/unsubscribed', unsubscribed);
router.get('/nonprofits', nonprofits);
@@ -30,7 +28,6 @@ module.exports = function(app) {
router.get('/pmi-acp-agile-project-managers-form', agileProjectManagersForm);
router.get('/coding-bootcamp-cost-calculator', bootcampCalculator);
router.get('/stories', showTestimonials);
router.get('/shop', showShop);
router.get('/all-stories', showAllTestimonials);
router.get('/how-nonprofit-projects-work', howNonprofitProjectsWork);
router.get(
@@ -88,28 +85,6 @@ module.exports = function(app) {
});
}
function showShop(req, res) {
res.render('resources/shop', {
title: 'Support freeCodeCamp by Buying t-shirts, ' +
'stickers, and other goodies'
});
}
function confirmStickers(req, res) {
req.flash('success', {
msg: 'Thank you for supporting our community! You should receive ' +
'your stickers in the mail soon!'
});
res.redirect('/shop');
}
function cancelStickers(req, res) {
req.flash('info', {
msg: 'You\'ve cancelled your purchase of our stickers. You can ' +
'support our community any time by buying some.'
});
res.redirect('/shop');
}
function submitCatPhoto(req, res) {
res.send('Submitted!');
}