Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ var normalize = require('path').normalize;
var spawn = require('child_process').spawn;
var express = require('express');

module.exports = function (ref, action) {
module.exports = function (ref, action, body_parser_json_options) {

// create express instance
var hookshot = express();

// middleware
hookshot.use(bodyParser.urlencoded({ extended: false }));
hookshot.use(bodyParser.json());
hookshot.use(bodyParser.json(body_parser_json_options));

// main POST handler
hookshot.post('/', function (req, res, next) {
Expand Down