middleware/mw.app.context.js
function getDomainMap() {
        var domainMap = { 'www': 'www' };  // temp hack for mobile redirect stuff (remove later)
        _.each(appConfigs, function (appConfig, appName) {
            var domain = appConfig.domain || appName;  // by default domain is the app name
            domainMap[domain] = appName;
        });

        return domainMap;
    }
function getDomainMap() {
        var domainMap = { 'www': 'www' };  // temp hack for mobile redirect stuff (remove later)
        _.each(appConfigs, function (appConfig, appName) {
            var domain = appConfig.domain || appName;  // by default domain is the app name
            domainMap[domain] = appName;
        });

        return domainMap;
    }
function getDomainMap ( ) { var domainMap = { 'www' : 'www' } ; // temp hack for mobile redirect stuff (remove later) _ . each ( appConfigs , function ( appConfig , appName ) { var domain = appConfig . domain || appName ; // by default domain is the app name domainMap [ domain ] = appName ; } ) ; return domainMap ; }
Get the domain map by inspecting the app files
@returns {{}}
Get the domain map by inspecting the app files