[Server] Misskey API server is now accept a JSON as well as a application/x-www-form-urlencoded

Related to #154
This commit is contained in:
syuilo 2017-02-12 01:50:47 +09:00
parent 59854a9a91
commit c9d6320831

View file

@ -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
}));