src/Leevel/Router/OpenApiRouter.php
protected function parseMainRouters(OpenApi $openApi): array
    {
        $routers = [];

        if ($openApi->paths) {
            foreach ($openApi->paths as $path) {
                $routers = $this->parseOpenApiPath($path, $routers);
            }
        }

        return $routers;
    }
protected function parseMainRouters(OpenApi $openApi): array
    {
        $routers = [];

        if ($openApi->paths) {
            foreach ($openApi->paths as $path) {
                $routers = $this->parseOpenApiPath($path, $routers);
            }
        }

        return $routers;
    }
解析主路由.

@param \OpenApi\Annotations\OpenApi $openApi

@return array