update body parser
This commit is contained in:
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