Skip to content

Commit

Permalink
add Routes::append()
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptouuuu committed Nov 26, 2023
1 parent 68c9d2c commit 8e54773
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Http/Routes.php
Expand Up @@ -38,6 +38,14 @@ public function add(Route|Under $route): self
return new self(($this->routes)($route));
}

/**
* @param Sequence<Route|Under> $routes
*/
public function append(Sequence $routes): self
{
return new self($this->routes->append($routes));
}

/**
* @internal
*
Expand Down

0 comments on commit 8e54773

Please sign in to comment.