7 lines
128 B
JavaScript
7 lines
128 B
JavaScript
const redirect = (route) => {
|
|
return (req, res) => {
|
|
res.status(301).redirect(route);
|
|
};
|
|
};
|
|
|
|
module.exports = redirect;
|