summaryrefslogtreecommitdiff
path: root/src/server/api
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-13 07:34:27 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-13 07:34:27 +0900
commit61f21594a9edbb3102d6a0f45c1e95ed82c3f606 (patch)
tree7984ece15e308bba8f8c183ab29ef1da1d6a1863 /src/server/api
parentwip (diff)
downloadsharkey-61f21594a9edbb3102d6a0f45c1e95ed82c3f606.tar.gz
sharkey-61f21594a9edbb3102d6a0f45c1e95ed82c3f606.tar.bz2
sharkey-61f21594a9edbb3102d6a0f45c1e95ed82c3f606.zip
wip
Diffstat (limited to 'src/server/api')
-rw-r--r--src/server/api/index.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/api/index.ts b/src/server/api/index.ts
index d2427d30ae..c383e1cf8d 100644
--- a/src/server/api/index.ts
+++ b/src/server/api/index.ts
@@ -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({