whole_func_string: function Router (we) {
    this.we = we;
    let router = this;
  
    this.publicRouter = null;
  
    this.routeMap = {};
    // resources tree
    this.resources = {};
    // resources salved by name
    this.resourcesByName = {};
    this.resourcesSort = [];
    this.search = require('./search');
  
    router.singleRecordActions = [
      'findOne', 'update', 'destroy', 'updateAttribute',
      'deleteAttribute', 'addRecord', 'removeRecord', 'getRecord', 'edit', 'delete'
    ];
  
    we.events.emit('we:Router:construct', this);
  }
func_code_string: function Router (we) {
    this.we = we;
    let router = this;
  
    this.publicRouter = null;
  
    this.routeMap = {};
    // resources tree
    this.resources = {};
    // resources salved by name
    this.resourcesByName = {};
    this.resourcesSort = [];
    this.search = require('./search');
  
    router.singleRecordActions = [
      'findOne', 'update', 'destroy', 'updateAttribute',
      'deleteAttribute', 'addRecord', 'removeRecord', 'getRecord', 'edit', 'delete'
    ];
  
    we.events.emit('we:Router:construct', this);
  }
func_documentation_string: Router protorype
  
  @param {Object} we