lib/framework/middleware.js
function before(ctx) {
  var fn = lookup(ctx.operation, 'middleware', 'before');
  var prefix = describe(ctx);

  if (fn) {
    return fn(ctx);
  } else {
    debug(prefix + 'before middleware disabled (not defined)');
  }
}
function before(ctx) {
  var fn = lookup(ctx.operation, 'middleware', 'before');
  var prefix = describe(ctx);

  if (fn) {
    return fn(ctx);
  } else {
    debug(prefix + 'before middleware disabled (not defined)');
  }
}
function before ( ctx ) { var fn = lookup ( ctx . operation , 'middleware' , 'before' ) ; var prefix = describe ( ctx ) ; if ( fn ) { return fn ( ctx ) ; } else { debug ( prefix + 'before middleware disabled (not defined)' ) ; } }
Before middleware.
Before middleware .