wip
This commit is contained in:
@@ -14,7 +14,8 @@ const handler = require('./api-handler').default;
|
||||
// Init app
|
||||
const app = new Koa();
|
||||
app.use(bodyParser({
|
||||
detectJSON: () => true
|
||||
// リクエストが multipart/form-data でない限りはJSONだと見なす
|
||||
detectJSON: ctx => !ctx.is('multipart/form-data')
|
||||
}));
|
||||
|
||||
// Init multer instance
|
||||
|
Reference in New Issue
Block a user