bigly-video/client/register.js

13 lines
412 B
JavaScript
Raw Normal View History

2024-09-07 18:12:58 -04:00
import Route from "../route.js";
2024-09-08 05:04:57 -04:00
import form from "../comp/form.js";
2024-09-07 18:12:58 -04:00
// TODO: rewrite
let main = new Route([], async function (req, res, input) {
2024-09-08 05:04:57 -04:00
return form([
{ label: "Username", type: "text", name: "user" },
{ label: "Password", type: "password", name: "pass" },
{ label: "Password (again)", type: "password", name: "pass2" },
],'/api/form/register')
2024-09-07 18:12:58 -04:00
});
export default main;