in-the-database-2/src/upload.ts

11 lines
271 B
TypeScript
Raw Normal View History

2020-09-02 16:03:49 +00:00
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');
});
}