From 1894e9052a8cd2de3c6e8460d787730f04689cff Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 12 Feb 2017 01:50:47 +0900 Subject: [PATCH] [Server] Misskey API server is now accept a JSON as well as a application/x-www-form-urlencoded Related to #154 --- src/api/server.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/server.ts b/src/api/server.ts index e94a7797f..75f9943ee 100644 --- a/src/api/server.ts +++ b/src/api/server.ts @@ -18,6 +18,7 @@ const app = express(); app.disable('x-powered-by'); app.set('etag', false); app.use(bodyParser.urlencoded({ extended: true })); +app.use(bodyParser.json()); app.use(cors({ origin: true }));