17 lines
No EOL
458 B
JavaScript
17 lines
No EOL
458 B
JavaScript
import Route from "../route.js";
|
|
import auth from "../form/auth.js";
|
|
|
|
let main = new Route([auth], async function (req, res, input) {
|
|
res.render('form', {
|
|
data: [
|
|
{ label: "Description", type: "textarea", name: "desc" },
|
|
{ label: "Avatar", type: "file", name: "file" }
|
|
],
|
|
'route': '/api/upload/settings',
|
|
'title': 'User Settings',
|
|
...input
|
|
});
|
|
return true;
|
|
});
|
|
|
|
export default main; |