src/Router/IndexedRouter.php
protected function indexRoute(Route $route): void
    {
        foreach( $route->getMethods() as $method ){
            $this->indexes[$method][] = $route;
        }
    }
protected function indexRoute(Route $route): void
    {
        foreach( $route->getMethods() as $method ){
            $this->indexes[$method][] = $route;
        }
    }
Index the route.

@param Route $route
@return void