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;
                });
            }
        });
    }