[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:
parent
7d1983470d
commit
1894e9052a
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ const app = express();
|
||||||
app.disable('x-powered-by');
|
app.disable('x-powered-by');
|
||||||
app.set('etag', false);
|
app.set('etag', false);
|
||||||
app.use(bodyParser.urlencoded({ extended: true }));
|
app.use(bodyParser.urlencoded({ extended: true }));
|
||||||
|
app.use(bodyParser.json());
|
||||||
app.use(cors({
|
app.use(cors({
|
||||||
origin: true
|
origin: true
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in a new issue