public function load(array $routesConfig)
    {
        foreach ($routesConfig as $route) {
            $pattern = $route[0];
            $handler = $route[1] ?? null;
            $methods = $route[2] ?? '*';
            $this->map($pattern, $handler, $methods);
        }
        return $this->routes;
    }