9 lines
260 B
JavaScript
9 lines
260 B
JavaScript
const handlePageRender = require('../../helpers/handlePageRender.jsx');
|
|
|
|
module.exports = app => {
|
|
// a catch-all route if someone visits a page that does not exist
|
|
app.use('*', (req, res) => {
|
|
// send response
|
|
handlePageRender(req, res);
|
|
});
|
|
};
|