bigly-chat/client/settings.js

17 lines
458 B
JavaScript
Raw Normal View History

2024-11-25 14:12:44 -05:00
import Route from "../route.js";
import auth from "../form/auth.js";
let main = new Route([auth], async function (req, res, input) {
2024-11-25 14:12:44 -05:00
res.render('form', {
2024-11-25 14:12:44 -05:00
data: [
{ label: "Description", type: "textarea", name: "desc" },
{ label: "Avatar", type: "file", name: "file" }
],
'route': '/api/upload/settings',
'title': 'User Settings',
2024-11-25 14:12:44 -05:00
...input
2024-11-25 14:12:44 -05:00
});
return true;
2024-11-25 14:12:44 -05:00
});
export default main;