14 lines
No EOL
474 B
JavaScript
14 lines
No EOL
474 B
JavaScript
import Route from "../route.js";
|
|
|
|
// TODO: rewrite
|
|
let main = new Route([], async function (req, res, input) {
|
|
return `<div class='form-message'></div>
|
|
<form enctype='multipart/form-data' method='POST' action='/api/form/register'>
|
|
Username: <input type='text' name='user'><br/>
|
|
Password: <input type='password' name='pass'><br/>
|
|
Password (again): <input type='password' name='pass2'><br/>
|
|
<input type='submit'>
|
|
</form>`;
|
|
});
|
|
|
|
export default main; |