addon/route.js
function (target) {
    if (this.get('isResource') && !this.get('indexChild')) {
      // add index route if it does not exist
      this._route('index');
    }
    this.get('children').forEach(function (meta) {
      var args, methodName, isResource;
      args = [meta.get('name'), {path: meta.get('path')}];
      methodName = meta.get('methodName');
      isResource = meta.get('isResource');
      if (isResource) {
        args.push(meta.get('mapFunction'));
      }
      console[isResource && console.group ? 'group' : 'log'](
        '[enhanced-router] defining ' + meta
      );
      target[methodName].apply(target, args);
      if (isResource && console.group) {
        console.groupEnd();
      }
    });
  }
function (target) {
    if (this.get('isResource') && !this.get('indexChild')) {
      // add index route if it does not exist
      this._route('index');
    }
    this.get('children').forEach(function (meta) {
      var args, methodName, isResource;
      args = [meta.get('name'), {path: meta.get('path')}];
      methodName = meta.get('methodName');
      isResource = meta.get('isResource');
      if (isResource) {
        args.push(meta.get('mapFunction'));
      }
      console[isResource && console.group ? 'group' : 'log'](
        '[enhanced-router] defining ' + meta
      );
      target[methodName].apply(target, args);
      if (isResource && console.group) {
        console.groupEnd();
      }
    });
  }
function ( target ) { if ( this . get ( 'isResource' ) && ! this . get ( 'indexChild' ) ) { // add index route if it does not exist this . _route ( 'index' ) ; } this . get ( 'children' ) . forEach ( function ( meta ) { var args , methodName , isResource ; args = [ meta . get ( 'name' ) , { path : meta . get ( 'path' ) } ] ; methodName = meta . get ( 'methodName' ) ; isResource = meta . get ( 'isResource' ) ; if ( isResource ) { args . push ( meta . get ( 'mapFunction' ) ) ; } console [ isResource && console . group ? 'group' : 'log' ] ( '[enhanced-router] defining ' + meta ) ; target [ methodName ] . apply ( target , args ) ; if ( isResource && console . group ) { console . groupEnd ( ) ; } } ) ; }
The method doing the call as Router.map is expecting

@method map
@param {Ember.Router.recognizer} target
The method doing the call as Router . map is expecting