Skip to content

Commit b8b0377

Browse files
AnuiSharkadamgross42
authored andcommitted
Ensure xhub is used in express before bodyParser (fbsamples#8)
1 parent 89d5fff commit b8b0377

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

heroku/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ var xhub = require('express-x-hub');
1414
app.set('port', (process.env.PORT || 5000));
1515
app.listen(app.get('port'));
1616

17-
app.use(bodyParser.json());
1817
app.use(xhub({ algorithm: 'sha1', secret: process.env.APP_SECRET }));
18+
app.use(bodyParser.json());
1919

2020
app.get('/', function(req, res) {
2121
console.log(req);

0 commit comments

Comments
 (0)