11 lines
271 B
TypeScript
11 lines
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');
|
||
|
});
|
||
|
}
|