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

10 lines
260 B
JavaScript
Raw Normal View History

2018-03-29 02:35:41 +02:00
const handlePageRender = require('../../helpers/handlePageRender.jsx');
2018-02-23 20:17:59 +01:00
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);
});
};