2018-03-29 02:35:41 +02:00
|
|
|
const handlePageRender = require('../../helpers/handlePageRender.jsx');
|
2018-02-23 20:17:59 +01:00
|
|
|
|
2017-06-17 22:51:30 +02:00
|
|
|
module.exports = app => {
|
|
|
|
// a catch-all route if someone visits a page that does not exist
|
2018-02-23 20:17:59 +01:00
|
|
|
app.use('*', (req, res) => {
|
2017-06-30 02:10:14 +02:00
|
|
|
// send response
|
2018-02-23 20:17:59 +01:00
|
|
|
handlePageRender(req, res);
|
2017-06-19 18:37:35 +02:00
|
|
|
});
|
|
|
|
};
|