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

@ -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
}));
}
}