forked from oat/in-the-database-2
11 lines
No EOL
271 B
TypeScript
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');
|
|
});
|
|
} |