spee.ch/routes/home-routes.js

11 lines
282 B
JavaScript
Raw Normal View History

2017-06-13 20:00:50 +02:00
module.exports = function(app){
// route for the home page
app.get("/", function(req, res){
res.status(200).render('index');
});
// a catch-all route if someone visits a page that does not exist
app.use("*", function(req, res){
res.status(404).render('fourOhFour');
});
}