code: function wrap(obj) {
    if (_.isArray(obj)) {
      return obj.map(wrap);
    }
    return wrapRoute(obj);
  }
docs: Wrap all middlewares from array
  @param obj the object (controller exports)
  @returns {Function|Array} the wrapped object