module.exports = function(robot)  {


	robot.router.post('/hubot/github-hooks', function(req, res) {
		res.send("Request is good");

		var data = null;

	    if(req.body.payload) {
	      try {
	        data = JSON.parse(req.body.payload);
	      } catch(e) {
	        robot.logger.error("Invalid JSON submitted to Slack message callback");
	        //res.send(422)
	        res.send('You supplied invalid JSON to this endpoint.');
	        return;
	      }
	    } else {
	      robot.logger.error("Non-JSON submitted to Slack message callback");
	      //res.send(422)
	      res.send('You supplied invalid JSON to this endpoint.');
	      return;
	    }
	})


}
@@ -308,38 +308,35 @@
 tted to 
-Slack message callback
+/hubot/github-hooks
 %22);%0A%09   
@@ -515,30 +515,27 @@
  to 
-Slack message callback
+/hubot/github-hooks
 %22);%0A
@@ -636,22 +636,57 @@
 return;%0A
-
 %09    %7D
+%0A%0A%09    console.logger.info(data);%0A%0A
 %0A%09%7D)%0A%0A%0A%7D

update github-hooks