in-the-database-2/src/upload.ts
2020-09-02 19:03:49 +03:00

11 lines
No EOL
271 B
TypeScript

import { returnStatic } from './lib/util';
export function run(app) {
app.get('/upload', returnStatic('upload.html'));
app.post('/upload', async (req, res) => { // only for testing, very abusable
console.log(req.files);
res.send('ok, i got something');
});
}