summaryrefslogtreecommitdiff
path: root/src/server/api/index.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-13 09:44:00 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-13 09:44:00 +0900
commit22d2f2051c4cbe3da5b9ece674f36a6555f8c953 (patch)
tree0c29ea7c8f1797f9a28cab2d70d31e91cd9cb312 /src/server/api/index.ts
parentwip (diff)
downloadmisskey-22d2f2051c4cbe3da5b9ece674f36a6555f8c953.tar.gz
misskey-22d2f2051c4cbe3da5b9ece674f36a6555f8c953.tar.bz2
misskey-22d2f2051c4cbe3da5b9ece674f36a6555f8c953.zip
wip
Diffstat (limited to 'src/server/api/index.ts')
-rw-r--r--src/server/api/index.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/api/index.ts b/src/server/api/index.ts
index c383e1cf8d..2ea5fccb5b 100644
--- a/src/server/api/index.ts
+++ b/src/server/api/index.ts
@@ -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({