Skip to content

Commit

Permalink
add body-parser as middleware
Browse files Browse the repository at this point in the history
relates #37
  • Loading branch information
rehabas committed Mar 28, 2020
1 parent 3441b76 commit 21f816a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"dependencies": {
"babel-jest": "^24.9.0",
"bcrypt": "^4.0.1",
"body-parser": "^1.19.0",
"compression": "^1.7.4",
"cookie-parser": "^1.4.5",
"dotenv": "^8.2.0",
Expand Down
3 changes: 2 additions & 1 deletion server/app.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
const express = require('express');
const compression = require('compression');
const { join } = require('path');
const bodyParser = require('body-parser');

const controller = require('./controllers');

const app = express();

app.use(bodyParser.urlencoded({ extended: false }));
app.disable('x-powered-by');
app.set('port', process.env.PORT || 5000);

Expand Down

0 comments on commit 21f816a

Please sign in to comment.