2018-02-23 11:17:59 -08:00
|
|
|
const handlePageRender = require('../helpers/handlePageRender.jsx');
|
|
|
|
|
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 11:17:59 -08:00
|
|
|
app.use('*', (req, res) => {
|
2017-06-29 17:10:14 -07:00
|
|
|
// send response
|
2018-02-23 11:17:59 -08:00
|
|
|
handlePageRender(req, res);
|
2017-06-19 18:37:35 +02:00
|
|
|
});
|
|
|
|
};
|