spee.ch/server/routes/fallback-routes.js
2018-03-16 10:34:26 -07:00

9 lines
257 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);
});
};