bigly-chat/client/upload.js
2024-11-25 14:12:44 -05:00

19 lines
No EOL
538 B
JavaScript

import Route from "../route.js";
import auth from "../form/auth.js";
// TODO: rewrite
let main = new Route([auth], async function (req, res, input) {
res.render('form', {
data: [
{ label: "Video file", type: "file", name: "file" },
{ label: "Name", type: "text", name: "title" },
{ label: "Description", type: "textarea", name: "desc" }
],
'route': '/api/upload/upload',
'title': 'Upload Content',
...input
});
return true;
});
export default main;