bigly-chat/client/upload.js
2024-10-30 20:37:20 -04:00

18 lines
No EOL
528 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) {
return 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
});
});
export default main;