src/site-description/builder.js
function _processRoute(siteDesc, prefix, options) {
    options = options || {};
    //if (siteDesc.roles !== undefined && siteDesc.url !== undefined)
    //console.log('route', siteDesc.url, 'prefix', prefix);

    if (userHelper.hasRole(siteDesc.roles)) {
        let route = {
            roles: siteDesc.roles,
            name: prefix,
            route: siteDesc.url,
            regex: routeToRegExp(siteDesc.url),
            requiredParams: siteDesc.requiredParams
        };
        //Call the Backbone.history.handlers....
        //console.log('*****************');
        //console.log('ROute name: ',route.route);
        //console.log('Route handler name : ',  findRouteName(route.route.substring(1)));
        routes[findRouteName(route.route.substring(1))] = route;
        if (options.isInSiteStructure) {
            siteStructure[prefix] = route;
        }
    }
}
function _processRoute(siteDesc, prefix, options) {
    options = options || {};
    //if (siteDesc.roles !== undefined && siteDesc.url !== undefined)
    //console.log('route', siteDesc.url, 'prefix', prefix);

    if (userHelper.hasRole(siteDesc.roles)) {
        let route = {
            roles: siteDesc.roles,
            name: prefix,
            route: siteDesc.url,
            regex: routeToRegExp(siteDesc.url),
            requiredParams: siteDesc.requiredParams
        };
        //Call the Backbone.history.handlers....
        //console.log('*****************');
        //console.log('ROute name: ',route.route);
        //console.log('Route handler name : ',  findRouteName(route.route.substring(1)));
        routes[findRouteName(route.route.substring(1))] = route;
        if (options.isInSiteStructure) {
            siteStructure[prefix] = route;
        }
    }
}
function _processRoute ( siteDesc , prefix , options ) { options = options || { } ; //if (siteDesc.roles !== undefined && siteDesc.url !== undefined) //console.log('route', siteDesc.url, 'prefix', prefix); if ( userHelper . hasRole ( siteDesc . roles ) ) { let route = { roles : siteDesc . roles , name : prefix , route : siteDesc . url , regex : routeToRegExp ( siteDesc . url ) , requiredParams : siteDesc . requiredParams } ; //Call the Backbone.history.handlers.... //console.log('*****************'); //console.log('ROute name: ',route.route); //console.log('Route handler name : ',  findRouteName(route.route.substring(1))); routes [ findRouteName ( route . route . substring ( 1 ) ) ] = route ; if ( options . isInSiteStructure ) { siteStructure [ prefix ] = route ; } } }
Process the route part of the site description element.
Process the route part of the site description element .