add more courseware and a working submit route
This commit is contained in:
2
app.js
2
app.js
@ -335,6 +335,8 @@ app.get('/privacy', function(req, res) {
|
||||
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) {
|
||||
if (req.user) {
|
||||
if (req.user.email) {
|
||||
|
@ -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) {
|
||||
res.render('resources/nonprofits', {
|
||||
title: 'A guide to our Nonprofit Projects'
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user