frontend: Édition profil + corrections backend

This commit is contained in:
Divlo
2020-04-08 00:47:24 +02:00
parent 3ed605af1b
commit 5d048f3010
11 changed files with 268 additions and 18 deletions

View File

@ -1,9 +1,9 @@
function redirect(ctx, path) {
if (ctx.res) {
if (ctx.res != undefined) {
ctx.res.writeHead(302, { Location: path });
ctx.res.end();
} else {
document.location.pathname = path;
document.location.href = path;
}
}