public function addRoute(string $type, string $name, string $route): void{
        if (!isset($this->routes[$name])) {
            $this->routes[$name] = [];
        }
        $this->routes[$name][$type] = $route;
    }