Move commit to separate router
This commit is contained in:
15
server/boot/commit.js
Normal file
15
server/boot/commit.js
Normal 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.'
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user