bigly-chat/client/settings.js

18 lines
475 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) {
2024-11-25 08:24:18 -05:00
res.render('form', {
2024-09-27 03:59:23 -04:00
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-11-25 08:24:18 -05:00
});
return true;
2024-09-27 03:59:23 -04:00
});
export default main;