mountApp(app) {
        if (!this.appModules) {
            this.appModules = {};
            this.appModulesByAlias = {};
        }

        assert: !this.appModules.hasOwnProperty(app.route);

        this.mountRouter(app.route, app.router);
        
        this.appModules[app.route] = app;

        if (app.name in this.appModulesByAlias) {
            let existingApp = this.appModulesByAlias[app.name];
            //move bucket
            this.appModulesByAlias[`${existingApp.name}[@${existingApp.route}]`] = existingApp;
            delete this.appModulesByAlias[app.name];

            this.appModulesByAlias[`${app.name}[@${app.route}]`] = app;
        } else {
            this.appModulesByAlias[app.name] = app;
        }

        this.log('verbose', `All routes from app [${app.name}] are mounted under "${app.route}".`);
    }
/**
     * Mount an app at specified route.
     * @param {WebModule} app 
     */
Mount an app at specified route.
Mount an app at specified route .
mountApp(app) {
        if (!this.appModules) {
            this.appModules = {};
            this.appModulesByAlias = {};
        }
        assert: !this.appModules.hasOwnProperty(app.route);
        this.mountRouter(app.route, app.router);
        this.appModules[app.route] = app;
        if (app.name in this.appModulesByAlias) {
            let existingApp = this.appModulesByAlias[app.name];
            this.appModulesByAlias[`${existingApp.name}[@${existingApp.route}]`] = existingApp;
            delete this.appModulesByAlias[app.name];
            this.appModulesByAlias[`${app.name}[@${app.route}]`] = app;
        } else {
            this.appModulesByAlias[app.name] = app;
        }
        this.log('verbose', `All routes from app [${app.name}] are mounted under "${app.route}".`);
    }
mountApp ( app ) { if ( ! this . appModules ) { this . appModules = { } ; this . appModulesByAlias = { } ; } assert : ! this . appModules . hasOwnProperty ( app . route ) ; this . mountRouter ( app . route , app . router ) ; this . appModules [ app . route ] = app ; if ( app . name in this . appModulesByAlias ) { let existingApp = this . appModulesByAlias [ app . name ] ; this . appModulesByAlias [ ` ${ existingApp . name } ${ existingApp . route } ` ] = existingApp ; delete this . appModulesByAlias [ app . name ] ; this . appModulesByAlias [ ` ${ app . name } ${ app . route } ` ] = app ; } else { this . appModulesByAlias [ app . name ] = app ; } this . log ( 'verbose' , ` ${ app . name } ${ app . route } ` ) ; }
Mount an app at specified route.
Mount an app at specified route .
//move bucket