lib/helpers/rest/config/hosts.js
function (config, ID) {

        if (!ID) ID = '/';

        if (typeof config[environment] === 'string') hosts[ID] = config[environment];

        for (let element in config) {

            let elementID = (ID === '/') ? '/' + element : ID + '/' + element;
            if (typeof config[element] === 'object') iterate(config[element], elementID);

        }

    }
function (config, ID) {

        if (!ID) ID = '/';

        if (typeof config[environment] === 'string') hosts[ID] = config[environment];

        for (let element in config) {

            let elementID = (ID === '/') ? '/' + element : ID + '/' + element;
            if (typeof config[element] === 'object') iterate(config[element], elementID);

        }

    }
function ( config , ID ) { if ( ! ID ) ID = '/' ; if ( typeof config [ environment ] === 'string' ) hosts [ ID ] = config [ environment ] ; for ( let element in config ) { let elementID = ( ID === '/' ) ? '/' + element : ID + '/' + element ; if ( typeof config [ element ] === 'object' ) iterate ( config [ element ] , elementID ) ; } }
recursively set the applications hosts
recursively set the applications hosts