tada: Initial commit
This commit is contained in:
parent
19300b5352
commit
3529e9e4ee
32 changed files with 6714 additions and 1 deletions
packages/backend/src/middleware
9
packages/backend/src/middleware/bodyParser.js
Normal file
9
packages/backend/src/middleware/bodyParser.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
import bodyParser from "body-parser";
|
||||
|
||||
export default (app) => {
|
||||
// application/x-www-form-urlencoded
|
||||
app.use(bodyParser.urlencoded({ extended: true }));
|
||||
|
||||
// application/json
|
||||
app.use(bodyParser.json());
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue