loadAppRouteConfig(app) {
    let results=null;
    if (app.constructor.name === 'Sails' && app.config.routes !== undefined) {
      try {
        results=getRoutes(app);
      } catch (err) {
        new InternalError().setDetails({
          message: err.message,
          data: err,
        });
      }
      return results;
    } else {
      throw new InternalError().setDetails({message: 'The passed app is not sails.', data: app});
    }
  }
/**
   * loadAppRouteConfig
   *  @description overwriten loadAppRouteConfig to match Sails for loading getRouter
   * @param {Object} app Sails App.
   * @return {JSON} json paramValidator Middleware config.;
   */
loadAppRouteConfig
@description overwriten loadAppRouteConfig to match Sails for loading getRouter
@param {Object} app Sails App.
@return {JSON} json paramValidator Middleware config..
loadAppRouteConfig @description overwriten loadAppRouteConfig to match Sails for loading getRouter @param { Object } app Sails App . @return { JSON } json paramValidator Middleware config ..
loadAppRouteConfig(app) {
    let results=null;
    if (app.constructor.name === 'Sails' && app.config.routes !== undefined) {
      try {
        results=getRoutes(app);
      } catch (err) {
        new InternalError().setDetails({
          message: err.message,
          data: err,
        });
      }
      return results;
    } else {
      throw new InternalError().setDetails({message: 'The passed app is not sails.', data: app});
    }
  }
loadAppRouteConfig ( app ) { let results = null ; if ( app . constructor . name === 'Sails' && app . config . routes !== undefined ) { try { results = getRoutes ( app ) ; } catch ( err ) { new InternalError ( ) . setDetails ( { message : err . message , data : err , } ) ; } return results ; } else { throw new InternalError ( ) . setDetails ( { message : 'The passed app is not sails.' , data : app } ) ; } }
loadAppRouteConfig
  @description overwriten loadAppRouteConfig to match Sails for loading getRouter
 @param {Object} app Sails App.
loadAppRouteConfig @description overwriten loadAppRouteConfig to match Sails for loading getRouter @param { Object } app Sails App .