spee.ch/routes/home-routes.js

11 lines
274 B
JavaScript
Raw Normal View History

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