Skip to content

Commit

Permalink
added body parser; its tunrs out express dont ship them
Browse files Browse the repository at this point in the history
  • Loading branch information
AamirAbro committed Apr 13, 2016
1 parent 192a15a commit 8f412f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ const http = require('http'),
contentTypes = require('./utils/content-types'),
sysInfo = require('./utils/sys-info'),
env = process.env,
bodyParser = require('body-parser'),
express = require('express');

let fbAppToken = env.FB_APP_TOKEN;

var app = express();

app.use(bodyParser.json());

app.use('/static', express.static('static'));

app.get('/health', function(req, res){
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"start": "node --use_strict start.js"
},
"dependencies": {
"express": "4.x"
"express": "4.x",
"body-parser": "1.x"
},
"author": "Ionut-Cristian Florescu <[email protected]>",
"license": "ISC"
Expand Down

0 comments on commit 8f412f5

Please sign in to comment.