This commit is contained in:
biglyderv 2024-11-01 17:40:01 -04:00
parent 8330a84056
commit 8f19c59ebb

View file

@ -3,7 +3,6 @@ import auth from "../form/auth.js";
// TODO: rewrite
let main = new Route([auth], async function (req, res, input) {
let { username } = input;
return res.render('form', {
data: [
{ label: "Username", type: "text", name: "user" },
@ -12,7 +11,7 @@ let main = new Route([auth], async function (req, res, input) {
],
'route': '/api/form/register',
'title': 'Join',
username
...input
});
});