update body parser

This commit is contained in:
2024-11-27 01:06:46 +07:00
parent 67d89e3911
commit 491e716e34
2 changed files with 11 additions and 0 deletions

View File

@ -15,6 +15,7 @@
"license": "ISC",
"dependencies": {
"bcryptjs": "^2.4.3",
"body-parser": "^1.20.3",
"compression": "^1.7.5",
"config": "^3.3.12",
"cors": "^2.8.5",

View File

@ -0,0 +1,10 @@
import bodyParser from 'body-parser';
import express from 'express';
export class JsonHelper {
static setup(app: express.Application) {
app.use(bodyParser.urlencoded({
extended: true
}));
}
}