update body parser
This commit is contained in:
@ -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",
|
||||
|
||||
10
src/helpers/express/body_parser.ts
Normal file
10
src/helpers/express/body_parser.ts
Normal 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
|
||||
}));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user