bigly-chat/client/upload.js

18 lines
528 B
JavaScript
Raw Normal View History

2024-09-19 05:44:24 -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) {
return res.render('form', {
data: [
{ label: "Video file", type: "file", name: "file" },
{ label: "Name", type: "text", name: "title" },
2024-09-19 05:58:01 -04:00
{ label: "Description", type: "textarea", name: "desc" }
2024-09-19 05:44:24 -04:00
],
'route': '/api/upload/upload',
'title': 'Upload Content',
2024-10-30 20:37:20 -04:00
...input
2024-09-19 05:44:24 -04:00
});
});
export default main;