spee.ch/server/routes/page/redirect.js
2018-03-29 09:48:32 -07:00

7 lines
128 B
JavaScript

const redirect = (route) => {
return (req, res) => {
res.status(301).redirect(route);
};
};
module.exports = redirect;