From a40cee605362a094d5552593f26b083b31818f66 Mon Sep 17 00:00:00 2001 From: Marchandise Rudy Date: Sat, 3 Feb 2024 19:57:39 +0100 Subject: [PATCH] feat: parser jsonld (#154) --- src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index 914bad2..c750632 100644 --- a/src/app.js +++ b/src/app.js @@ -18,7 +18,7 @@ app.disable('x-powered-by'); // Parser app.use(bodyParser.urlencoded({ extended: true })); app.use(bodyParser.text()); -app.use(bodyParser.json()); +app.use(bodyParser.json({type: ['json', 'jsonld']})); app.use(require('cookie-parser')()); app.use(require('multer')().array());