diff --git a/server/boot/commit.js b/server/boot/commit.js new file mode 100644 index 0000000000..a54dc19506 --- /dev/null +++ b/server/boot/commit.js @@ -0,0 +1,15 @@ +export default function commit(app) { + const router = app.loopback.Router(); + router.get( + '/commit', + commitToNonprofit + ); + + app.use(router); + + function commitToNonprofit(req, res) { + res.render('commit/', { + title: 'Commit to a nonprofit. Commit to your goal.' + }); + } +} diff --git a/server/boot/user.js b/server/boot/user.js index ae7accda41..a7c6fe2978 100644 --- a/server/boot/user.js +++ b/server/boot/user.js @@ -80,10 +80,6 @@ module.exports = function(app) { router.post('/reset-password', postReset); router.get('/email-signup', getEmailSignup); router.get('/email-signin', getEmailSignin); - router.get( - '/commit', - commitToNonprofit - ); router.get( '/toggle-lockdown-mode', sendNonUserToMap, @@ -126,12 +122,6 @@ module.exports = function(app) { }); } - function commitToNonprofit(req, res) { - res.render('account/commit', { - title: 'Commit to a nonprofit. Commit to your goal.' - }); - } - function signout(req, res) { req.logout(); res.redirect('/'); diff --git a/server/views/account/commit.jade b/server/views/commit/index.jade similarity index 100% rename from server/views/account/commit.jade rename to server/views/commit/index.jade