feature/IO-2885-IntelliPay-App-Postback-Support

- Replace/Remove body-parser with Expresses built in body parsing middleware
This commit is contained in:
Dave Richer
2025-04-01 12:20:50 -04:00
parent ba4da3e35c
commit 8e105f0b36
3 changed files with 2 additions and 4 deletions

1
package-lock.json generated
View File

@@ -26,7 +26,6 @@
"bee-queue": "^1.7.1",
"better-queue": "^3.8.12",
"bluebird": "^3.7.2",
"body-parser": "^1.20.3",
"bullmq": "^5.45.2",
"chart.js": "^4.4.8",
"cloudinary": "^2.6.0",

View File

@@ -32,7 +32,6 @@
"bee-queue": "^1.7.1",
"better-queue": "^3.8.12",
"bluebird": "^3.7.2",
"body-parser": "^1.20.3",
"bullmq": "^5.45.2",
"chart.js": "^4.4.8",
"cloudinary": "^2.6.0",

View File

@@ -84,8 +84,8 @@ const SOCKETIO_CORS_ORIGIN_DEV = ["http://localhost:3333", "https://localhost:33
const applyMiddleware = ({ app }) => {
app.use(compression());
app.use(cookieParser());
app.use(bodyParser.json({ limit: "50mb" }));
app.use(bodyParser.urlencoded({ limit: "50mb", extended: true }));
app.use(express.json({ limit: "50mb" }));
app.use(express.urlencoded({ limit: "50mb", extended: true }));
app.use(cors({ credentials: true, exposedHeaders: ["set-cookie"] }));
// Helper middleware