wip
This commit is contained in:
parent
c54ff5b2bc
commit
61f21594a9
4 changed files with 20 additions and 20 deletions
|
@ -5,6 +5,7 @@
|
|||
import * as Koa from 'koa';
|
||||
import * as Router from 'koa-router';
|
||||
import * as multer from 'koa-multer';
|
||||
import * as bodyParser from 'koa-bodyparser';
|
||||
|
||||
import endpoints from './endpoints';
|
||||
|
||||
|
@ -12,6 +13,7 @@ const handler = require('./api-handler').default;
|
|||
|
||||
// Init app
|
||||
const app = new Koa();
|
||||
app.use(bodyParser);
|
||||
|
||||
// Init multer instance
|
||||
const upload = multer({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue