src/route.js
function parseStaticRoutes(config) {
  Object.keys(config).map((key) => {
    StaticRoutes.push({
      method: 'get',
      route: key,
      controller: config[key].target,
      action: '*',
      options: config[key].options,
      generated: true,
      debug: {
        controller: config[key].target,
        action: '*'
      }
    });
  });
}
function parseStaticRoutes(config) {
  Object.keys(config).map((key) => {
    StaticRoutes.push({
      method: 'get',
      route: key,
      controller: config[key].target,
      action: '*',
      options: config[key].options,
      generated: true,
      debug: {
        controller: config[key].target,
        action: '*'
      }
    });
  });
}
function parseStaticRoutes ( config ) { Object . keys ( config ) . map ( ( key ) => { StaticRoutes . push ( { method : 'get' , route : key , controller : config [ key ] . target , action : '*' , options : config [ key ] . options , generated : true , debug : { controller : config [ key ] . target , action : '*' } } ) ; } ) ; }
Generate static routes
@param config
Generate static routes