modules/orionode/index.js
function loadEndpoints(endpoints, options, auth) {
	if (Array.isArray(endpoints)) {
		endpoints.forEach(function(endpoint) {
			if (auth !== Boolean(endpoint.authenticated)) {
				//after endpoints refactored, remove this check
				return;
			}
			const conditional = endpoint.hasOwnProperty("ifProp");
			if (conditional && options.configParams.get(endpoint.ifProp) || !conditional) {
				tryLoadRouter(endpoint, options);
			}
		});
	}
}
function loadEndpoints(endpoints, options, auth) {
	if (Array.isArray(endpoints)) {
		endpoints.forEach(function(endpoint) {
			if (auth !== Boolean(endpoint.authenticated)) {
				//after endpoints refactored, remove this check
				return;
			}
			const conditional = endpoint.hasOwnProperty("ifProp");
			if (conditional && options.configParams.get(endpoint.ifProp) || !conditional) {
				tryLoadRouter(endpoint, options);
			}
		});
	}
}
function loadEndpoints ( endpoints , options , auth ) { if ( Array . isArray ( endpoints ) ) { endpoints . forEach ( function ( endpoint ) { if ( auth !== Boolean ( endpoint . authenticated ) ) { //after endpoints refactored, remove this check return ; } const conditional = endpoint . hasOwnProperty ( "ifProp" ) ; if ( conditional && options . configParams . get ( endpoint . ifProp ) || ! conditional ) { tryLoadRouter ( endpoint , options ) ; } } ) ; } }
Function that loads endpoints from the configuration file
@param {{?}[]} endpoints The array of endpoints
@param {{?}} options The map of options
@param {bool} auth If we should be loading endpoints that require authentication
Function that loads endpoints from the configuration file