spee.ch/routes/fallback-routes.js
2018-02-23 11:17:59 -08: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);
});
};