a
This commit is contained in:
parent
bde68d3797
commit
10bbaf4e5e
1 changed files with 1 additions and 2 deletions
|
@ -3,7 +3,6 @@ import auth from "../form/auth.js";
|
||||||
|
|
||||||
// TODO: rewrite
|
// TODO: rewrite
|
||||||
let main = new Route([auth], async function (req, res, input) {
|
let main = new Route([auth], async function (req, res, input) {
|
||||||
let { username } = input;
|
|
||||||
return res.render('form', {
|
return res.render('form', {
|
||||||
data: [
|
data: [
|
||||||
{ label: "Username", type: "text", name: "user" },
|
{ label: "Username", type: "text", name: "user" },
|
||||||
|
@ -12,7 +11,7 @@ let main = new Route([auth], async function (req, res, input) {
|
||||||
],
|
],
|
||||||
'route': '/api/form/register',
|
'route': '/api/form/register',
|
||||||
'title': 'Join',
|
'title': 'Join',
|
||||||
username
|
...input
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue