Skip to content

Commit 8722596

Browse files
authored
* Removed body-parser via npm * Fix: makinhs#22
1 parent aefa8ac commit 8722596

3 files changed

Lines changed: 1 addition & 96 deletions

File tree

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const config = require('./common/config/env.config.js');
22

33
const express = require('express');
44
const app = express();
5-
const bodyParser = require('body-parser');
65

76
const AuthorizationRouter = require('./authorization/routes.config');
87
const UsersRouter = require('./users/routes.config');
@@ -20,7 +19,7 @@ app.use(function (req, res, next) {
2019
}
2120
});
2221

23-
app.use(bodyParser.json());
22+
app.use(express.json());
2423
AuthorizationRouter.routesConfig(app);
2524
UsersRouter.routesConfig(app);
2625

package-lock.json

Lines changed: 0 additions & 93 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
},
1919
"homepage": "https://github.com/makinhs/rest-api-tutorial#readme",
2020
"dependencies": {
21-
"body-parser": "1.19.0",
2221
"express": "^4.17.1",
2322
"jsonwebtoken": "^8.5.1",
2423
"mongoose": "^5.10.3",

0 commit comments

Comments
 (0)