spee.ch/server/routes/fallback/fallback-routes.js
2018-03-28 17:35:41 -07:00

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