This commit is contained in:
syuilo 2018-04-13 09:44:00 +09:00
parent 61f21594a9
commit 22d2f2051c
10 changed files with 40 additions and 26 deletions

View file

@ -13,7 +13,9 @@ const handler = require('./api-handler').default;
// Init app
const app = new Koa();
app.use(bodyParser);
app.use(bodyParser({
detectJSON: () => true
}));
// Init multer instance
const upload = multer({