This commit is contained in:
syuilo 2018-04-13 07:34:27 +09:00
parent c54ff5b2bc
commit 61f21594a9
4 changed files with 20 additions and 20 deletions

View file

@ -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({