original_string: public function map(Router $router)
      {
          $router->group(array('namespace' => $this->namespace), function ($router)
          {
              $basePath = $this->guessPackageRoutesPath();
  
              if (is_readable($path = $basePath .DS .'Api.php')) {
                  $router->group(array('prefix' => 'api', 'middleware' => 'api'), function ($router) use ($path)
                  {
                      require $path;
                  });
              }
  
              if (is_readable($path = $basePath .DS .'Web.php')) {
                  $router->group(array('middleware' => 'web'), function ($router) use ($path)
                  {
                      require $path;
                  });
              }
          });
      }
code: public function map(Router $router)
      {
          $router->group(array('namespace' => $this->namespace), function ($router)
          {
              $basePath = $this->guessPackageRoutesPath();
  
              if (is_readable($path = $basePath .DS .'Api.php')) {
                  $router->group(array('prefix' => 'api', 'middleware' => 'api'), function ($router) use ($path)
                  {
                      require $path;
                  });
              }
  
              if (is_readable($path = $basePath .DS .'Web.php')) {
                  $router->group(array('middleware' => 'web'), function ($router) use ($path)
                  {
                      require $path;
                  });
              }
          });
      }
code_tokens: public function map ( Router $ router ) { $ router -> group ( array ( 'namespace' => $ this -> namespace ) , function ( $ router ) { $ basePath = $ this -> guessPackageRoutesPath ( ) ; if ( is_readable ( $ path = $ basePath . DS . 'Api.php' ) ) { $ router -> group ( array ( 'prefix' => 'api' , 'middleware' => 'api' ) , function ( $ router ) use ( $ path ) { require $ path ; } ) ; } if ( is_readable ( $ path = $ basePath . DS . 'Web.php' ) ) { $ router -> group ( array ( 'middleware' => 'web' ) , function ( $ router ) use ( $ path ) { require $ path ; } ) ; } } ) ; }
docstring: Define the routes for the module.
  
  @param  \Nova\Routing\Router $router
  @return void
docstring_tokens: Define the routes for the module .