spee.ch/server/routes/fallback-routes.js

10 lines
257 B
JavaScript
Raw Normal View History

2018-02-23 20:17:59 +01: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 20:17:59 +01:00
app.use('*', (req, res) => {
2017-06-30 02:10:14 +02:00
// send response
2018-02-23 20:17:59 +01:00
handlePageRender(req, res);
});
};