spee.ch/server/controllers/pages/redirect.js

8 lines
128 B
JavaScript
Raw Normal View History

2018-03-29 18:48:32 +02:00
const redirect = (route) => {
return (req, res) => {
res.status(301).redirect(route);
};
};
module.exports = redirect;