lib/mia-js.js
function (reInit = false) {
        //load routes
        var environment = Shared.config("environment");
        var hosts = environment.hosts;
        if (hosts) {
            if (!_.isArray(hosts)) {
                hosts = [hosts];
            }
            for (var host in hosts) {
                _parseHosts(hosts[host], reInit);
            }
        }
        _vhosts["*"] = {
            host: '*',
            router: new express.Router()
        };

        _applyRouterConfig(_vhosts["*"]["router"]);
        _customInitFuncton(_vhosts["*"]["router"]);

        return RoutesHandler.initializeRoutes(_vhosts, reInit === false);
    }
function (reInit = false) {
        //load routes
        var environment = Shared.config("environment");
        var hosts = environment.hosts;
        if (hosts) {
            if (!_.isArray(hosts)) {
                hosts = [hosts];
            }
            for (var host in hosts) {
                _parseHosts(hosts[host], reInit);
            }
        }
        _vhosts["*"] = {
            host: '*',
            router: new express.Router()
        };

        _applyRouterConfig(_vhosts["*"]["router"]);
        _customInitFuncton(_vhosts["*"]["router"]);

        return RoutesHandler.initializeRoutes(_vhosts, reInit === false);
    }
function ( reInit = false ) { //load routes var environment = Shared . config ( "environment" ) ; var hosts = environment . hosts ; if ( hosts ) { if ( ! _ . isArray ( hosts ) ) { hosts = [ hosts ] ; } for ( var host in hosts ) { _parseHosts ( hosts [ host ] , reInit ) ; } } _vhosts [ "*" ] = { host : '*' , router : new express . Router ( ) } ; _applyRouterConfig ( _vhosts [ "*" ] [ "router" ] ) ; _customInitFuncton ( _vhosts [ "*" ] [ "router" ] ) ; return RoutesHandler . initializeRoutes ( _vhosts , reInit === false ) ; }
Register all routes defined in routes definition of projects and apply to virtual hosts
@param {Boolean} reInit
@returns {*}
@private
Register all routes defined in routes definition of projects and apply to virtual hosts