Skip to content

Commit

Permalink
Merge pull request #38 from GSG-G8/37-add-body-parser
Browse files Browse the repository at this point in the history
Express urlencoded  middleware
  • Loading branch information
ranasobeid95 authored Mar 28, 2020
2 parents e4ee3af + 8d66c4c commit 8b41820
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ app.disable('x-powered-by');
app.set('port', process.env.PORT || 5000);

app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(compression());
app.use('/api/v1/', controller);

Expand Down

0 comments on commit 8b41820

Please sign in to comment.