src/server/index.js
/**
 * Scans projects configuration and caches custom pages
 *
 * @private
 */
Scans projects configuration and caches custom pages
@private
Scans projects configuration and caches custom pages @private
function __init_scanProjects()
{
    __log_init(Core.LOG_LEVEL.INFO, "Scanning projects configuration and cache custom pages");
    for(let i = 0; i < config.projects.length; i++)
    {
        if(config.projects[i].hasOwnProperty("page"))
        {
            if(!fs.existsSync(path.resolve(process.cwd(), config.projects[i].page)))
            {
                Core.logger.log(Core.LOG_LEVEL.WARN, `Invalid page for project ${config.projects[i].id}: ${config.projects[i].page}. Setting to root`);
                config.projects[i].page = "";
                delete config.projects[i].page;
            }
            else
                loadPage(path.resolve(process.cwd(), config.projects[i].page), config.projects[i].id);
        }
    }
}
function __init_scanProjects ( ) { __log_init ( Core . LOG_LEVEL . INFO , "Scanning projects configuration and cache custom pages" ) ; for ( let i = 0 ; i < config . projects . length ; i ++ ) { if ( config . projects [ i ] . hasOwnProperty ( "page" ) ) { if ( ! fs . existsSync ( path . resolve ( process . cwd ( ) , config . projects [ i ] . page ) ) ) { Core . logger . log ( Core . LOG_LEVEL . WARN , ` ${ config . projects [ i ] . id } ${ config . projects [ i ] . page } ` ) ; config . projects [ i ] . page = "" ; delete config . projects [ i ] . page ; } else loadPage ( path . resolve ( process . cwd ( ) , config . projects [ i ] . page ) , config . projects [ i ] . id ) ; } } }
Scans projects configuration and caches custom pages
 @private
Scans projects configuration and caches custom pages @private
// Scan projects configuration and load and cache custom pages