var express = require('express');
var bunyan = require('bunyan');
var log = bunyan.createLogger({ name: 'app' });

var app = express();

var pkg = require('./index.js');
pkg.boot(app, 'somesecret');

app.post('/', pkg.router(function(req, res, event) {
    log.info(req.body);

    switch (event) {
    case 'ping':
        res.send('Ping');
    }
}));

app.listen(8080);

@@ -267,16 +267,23 @@
 req.body
+, event
 );%0A%0A    

Add the event to the log