registerRoutes(application, express) {
        super.registerRoutes(application, express);
        const app = application;
        const sExamplePath = getProjectFQN('apps/demos');
        app.get('/demos', async (req, res) => {
            // get a list of all example
            const aList = await promfs.ls(sExamplePath);
            return res.json({list: aList.map(d => d.name)});
        });
        app.use('/demo', express.static(sExamplePath));
    }
/**
     * GET /demos            a list of built demos
     * GET /demo/:iddemo     a static route to a specific demo folder
     *
     * @param application
     * @param express
     */
GET /demos            a list of built demos
GET /demo/:iddemo     a static route to a specific demo folder

@param application
@param express
GET / demos a list of built demos GET / demo / : iddemo a static route to a specific demo folder @param application @param express
registerRoutes(application, express) {
        super.registerRoutes(application, express);
        const app = application;
        const sExamplePath = getProjectFQN('apps/demos');
        app.get('/demos', async (req, res) => {
            const aList = await promfs.ls(sExamplePath);
            return res.json({list: aList.map(d => d.name)});
        });
        app.use('/demo', express.static(sExamplePath));
    }
registerRoutes ( application , express ) { super . registerRoutes ( application , express ) ; const app = application ; const sExamplePath = getProjectFQN ( 'apps/demos' ) ; app . get ( '/demos' , async ( req , res ) => { const aList = await promfs . ls ( sExamplePath ) ; return res . json ( { list : aList . map ( d => d . name ) } ) ; } ) ; app . use ( '/demo' , express . static ( sExamplePath ) ) ; }
GET /demos            a list of built demos
 GET /demo/:iddemo     a static route to a specific demo folder
GET / demos a list of built demos GET / demo / : iddemo a static route to a specific demo folder
// get a list of all example