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;
                });
            }
        });
    }
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;
                });
            }
        });
    }
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 ; } ) ; } } ) ; }
Define the routes for the module.

@param  \Nova\Routing\Router $router
@return void
Define the routes for the module .