Move commit to separate router

This commit is contained in:
Berkeley Martinez
2015-10-05 21:13:11 -07:00
parent f02b3ffd4c
commit e16efc832c
3 changed files with 15 additions and 10 deletions

15
server/boot/commit.js Normal file
View File

@@ -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.'
});
}
}