spee.ch/routes/home-routes.js
Fillerino 085d099040 Edited code to be ES6, added eslint and some basic linting configuration
Edited code to be ES6, added eslint and some basic linting configuration,(also includes husky for auto eslint before push)
2017-06-17 22:51:30 +02:00

10 lines
274 B
JavaScript

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')
})
}