var express = require('express'),
    bodyParser = require('body-parser'),
    config = require('config');

var app = express();

app.use(bodyParser.json());

app.post('/feed', function(req, res){
    res.send('OK');

    console.log(req.body);
});

app.listen(Number(config.get('server.port')));
console.log(
    'Phabricator-Slack connector server started on port %s',
    config.get('server.port')
);

@@ -98,16 +98,55 @@
 config')
+,%0A    concat = require('concat-stream')
 ;%0A%0Avar a
@@ -189,16 +189,139 @@
 json());
+%0Aapp.use(function(req, res, next)%7B%0A    req.pipe(concat(function(data)%7B%0A        req.raw = data;%0A        next();%0A    %7D));%0A%7D);
 %0A%0Aapp.po
@@ -329,12 +329,8 @@
 t('/
-feed
 ', f
@@ -389,20 +389,19 @@
 log(req.
-body
+raw
 );%0A%7D);%0A%0A

Debug utils