summaryrefslogtreecommitdiff
path: root/src/api/server.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-12 01:50:47 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-12 01:50:47 +0900
commit1894e9052a8cd2de3c6e8460d787730f04689cff (patch)
tree68518776ec3f74d7bda062b0a8e821504983dde0 /src/api/server.ts
parent[Test] Add some drive tests (diff)
downloadsharkey-1894e9052a8cd2de3c6e8460d787730f04689cff.tar.gz
sharkey-1894e9052a8cd2de3c6e8460d787730f04689cff.tar.bz2
sharkey-1894e9052a8cd2de3c6e8460d787730f04689cff.zip
[Server] Misskey API server is now accept a JSON as well as a application/x-www-form-urlencoded
Related to #154
Diffstat (limited to 'src/api/server.ts')
-rw-r--r--src/api/server.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/api/server.ts b/src/api/server.ts
index e94a7797f2..75f9943ee7 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
}));