refactor: Use json parser when content type is not specified

This commit is contained in:
Faruk AYDIN
2023-10-06 16:14:24 +02:00
parent ef087be4f0
commit a9fd261bab

View File

@@ -33,9 +33,11 @@ injectBullBoardHandler(app, serverAdapter);
appAssetsHandler(app);
app.use(morgan);
app.use(
express.json({
limit: appConfig.requestBodySizeLimit,
type: () => true,
verify(req, res, buf) {
(req as IRequest).rawBody = buf;
},