toLog() {
        var prevRoute = '/';
        Object.values(Object.values(this.dynamicRoutes.routes)).sort().forEach(ctrl => {
            var route = ctrl[CONF.METHOD.GET_ALL]; // take any route for comparisson
            if (route.split('/')[1] != prevRoute.split('/')[1]) // make blank when start different
                console.log('\t'+'-'.repeat(35))
            else
                console.log('');
            for (let method in ctrl) {
                route = ctrl[method];
                console.log(`\t✔%s   %s\t(Try on: %s)`,method.split('_')[0].padStart(9,' '),route.padEnd(40),`${CONF.TEST_URL}:${this.getServerPort()}${route}`);
            }
            prevRoute = route;
        });
        console.log('\t'+'-'.repeat(35))
        console.log(`View all entries in: ${CONF.TEST_URL}:${this.getServerPort()}${this.getApiRootPath()}`);
        console.log('');
    }
/**
     * Show in console required routes info
     */
Show in console required routes info
Show in console required routes info
toLog() {
        var prevRoute = '/';
        Object.values(Object.values(this.dynamicRoutes.routes)).sort().forEach(ctrl => {
            var route = ctrl[CONF.METHOD.GET_ALL]; 
            if (route.split('/')[1] != prevRoute.split('/')[1]) 
                console.log('\t'+'-'.repeat(35))
            else
                console.log('');
            for (let method in ctrl) {
                route = ctrl[method];
                console.log(`\t✔%s   %s\t(Try on: %s)`,method.split('_')[0].padStart(9,' '),route.padEnd(40),`${CONF.TEST_URL}:${this.getServerPort()}${route}`);
            }
            prevRoute = route;
        });
        console.log('\t'+'-'.repeat(35))
        console.log(`View all entries in: ${CONF.TEST_URL}:${this.getServerPort()}${this.getApiRootPath()}`);
        console.log('');
    }
toLog ( ) { var prevRoute = '/' ; Object . values ( Object . values ( this . dynamicRoutes . routes ) ) . sort ( ) . forEach ( ctrl => { var route = ctrl [ CONF . METHOD . GET_ALL ] ; if ( route . split ( '/' ) [ 1 ] != prevRoute . split ( '/' ) [ 1 ] ) console . log ( '\t' + '-' . repeat ( 35 ) ) else console . log ( '' ) ; for ( let method in ctrl ) { route = ctrl [ method ] ; console . log ( ` \t (T m e thod.s p lit(' _ ')[ 0 ] . p a dStart(9 , ' '), r o ute.p a dEnd(4 0 ), ` $ { CO NF.T E ST_URL}: $ th is.g e tServerPort() } $ { ro ute}` ) ; } prevRoute = route ; } ) ; console . log ( '\t' + '-' . repeat ( 35 ) ) console . log ( ` ${ CONF . TEST_URL } ${ this . getServerPort ( ) } ${ this . getApiRootPath ( ) } ` ) ; console . log ( '' ) ; }
Show in console required routes info
Show in console required routes info
// take any route for comparisson // make blank when start different