Loading biblioteca/src/Route.php +7 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,12 @@ class Route return $this; } public function patch(callable $callback): self { $this->methods['PATCH'] = $callback; return $this; } public function delete(callable $callback): self { $this->methods['DELETE'] = $callback; Loading @@ -63,6 +69,7 @@ class Route } } public function getParams(): array { return $this->params; Loading Loading
biblioteca/src/Route.php +7 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,12 @@ class Route return $this; } public function patch(callable $callback): self { $this->methods['PATCH'] = $callback; return $this; } public function delete(callable $callback): self { $this->methods['DELETE'] = $callback; Loading @@ -63,6 +69,7 @@ class Route } } public function getParams(): array { return $this->params; Loading