spee.ch/routes/fallback-routes.js

10 lines
257 B
JavaScript
Raw Normal View History

2018-02-23 11:17:59 -08:00
const handlePageRender = require('../helpers/handlePageRender.jsx');
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);
});
};