default.js
* @module greppy/app/worker/middleware/default
* @author Hermann Mayer <hermann.mayer92@gmail.com>
var express = require('express');
var DefaultMiddleware = function()
* Append the default middleware to the given application stack.
* @param {Object} app - Application to configure
* @param {function} callback - Function to call on finish
DefaultMiddleware.prototype.configure = function(app, callback)
('Greppy injects the bodyParser components (json, urlencoded)\n' +
'by default and this will be removed with Greppy 0.9\n' +
'Inject them in your context instead -> Context.preCconfigure()').yellow
// @DEPRECATED: Remove this with Greppy 0.9
// The bodyParser will be removed with connect 3.0
app.use(express.urlencoded());