add more courseware and a working submit route

This commit is contained in:
Quincy Larson
2015-05-15 18:43:07 -07:00
parent 48a9bcbb52
commit 8981be2dca
3 changed files with 1239 additions and 362 deletions

2
app.js
View File

@ -335,6 +335,8 @@ app.get('/privacy', function(req, res) {
res.redirect(301, '/field-guide/what-is-the-free-code-camp-privacy-policy?'); res.redirect(301, '/field-guide/what-is-the-free-code-camp-privacy-policy?');
}); });
app.get('/submit-cat-photo', resourcesController.catPhotoSubmit);
app.get('/api/slack', function(req, res) { app.get('/api/slack', function(req, res) {
if (req.user) { if (req.user) {
if (req.user.email) { if (req.user.email) {

View File

@ -157,6 +157,10 @@ module.exports = {
} }
}, },
catPhotoSubmit: function catPhotoSubmit(req, res) {
res.send('Success! You have submitted your cat photo.')
},
nonprofits: function nonprofits(req, res) { nonprofits: function nonprofits(req, res) {
res.render('resources/nonprofits', { res.render('resources/nonprofits', {
title: 'A guide to our Nonprofit Projects' title: 'A guide to our Nonprofit Projects'

File diff suppressed because it is too large Load Diff