Skip to content

Commit 25cd399

Browse files
committed
accept application/json as content-type
1 parent d098f82 commit 25cd399

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/structures/Base.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ export default class Base {
197197
const { app } = this.server;
198198
// For accessing POST body
199199
app.use(bodyParser.urlencoded({ extended: true }));
200+
app.use(bodyParser.json());
200201

201202
// Assets / JS / CSS
202203
app.use("/assets", express.static("./public/assets"));

0 commit comments

Comments
 (0)