bigly-chat/client/settings.js

17 lines
496 B
JavaScript
Raw Normal View History

2024-09-27 03:59:23 -04:00
import Route from "../route.js";
import auth from "../form/auth.js";
// TODO: rewrite
let main = new Route([auth], async function (req, res, input) {
return res.render('form', {
data: [
{ label: "Description", type: "textarea", name: "desc" },
{ label: "Avatar", type: "file", name: "file" }
],
'route': '/api/upload/settings',
'title': 'User Settings',
2024-10-30 20:37:20 -04:00
...input
2024-09-27 03:59:23 -04:00
}); /* todo: form in not a file */
});
export default main;