chore(server): Move api-server in to it's own DIR

This commit is contained in:
Bouncey
2018-08-31 16:04:04 +01:00
committed by mrugesh mohapatra
parent 9fba6bce4c
commit 46a217d0a5
369 changed files with 328 additions and 7431 deletions

View File

@@ -0,0 +1,32 @@
module.exports = function(app) {
var router = app.loopback.Router();
router.get('/nonprofit-project-instructions', function(req, res) {
res.redirect(
301,
'http://forum.freecodecamp.org/t/'
+ 'how-free-code-camps-nonprofits-projects-work/19547'
);
});
router.get('/agile', function(req, res) {
res.redirect(301, '/pmi-acp-agile-project-managers');
});
router.get('/privacy', function(req, res) {
res.redirect(
301,
'http://forum.freecodecamp.org/t/free-code-camp-privacy-policy/19545'
);
});
router.get('/learn-to-code', function(req, res) {
res.redirect(301, '/map');
});
router.get('/field-guide/*', function(req, res) {
res.redirect(302, 'http://forum.freecodecamp.org');
});
app.use(router);
};