frontend: Système d'onglets pour /functions/slug
This commit is contained in:
6
website/utils/redirect.js
Normal file
6
website/utils/redirect.js
Normal file
@ -0,0 +1,6 @@
|
||||
function redirect (ctx, path) {
|
||||
ctx.res.writeHead(302, { Location: path });
|
||||
ctx.res.end();
|
||||
}
|
||||
|
||||
module.exports = redirect;
|
Reference in New Issue
Block a user