code: function (next) {
  
        var app = connect();
  
        // application/json
        app.use(bodyParser.json());
  
        // application/x-www-form-urlencoded
        app.use(bodyParser.urlencoded({ extended: false }));
  
        // url parameters
        app.use(function (req, res, next) {
          if (!req.query) {
            req.query = ~req.url.indexOf('?')
              ? qs.parse(parseUrl(req).query)
              : {};
          }
  
          req.params = _.merge({}, req.query, req.body);
  
          next();
        });
  
        next(null, app);
      }
docs: middleware: parse params