Unverified Commit 4daa0606 authored by Alejandro Elias's avatar Alejandro Elias Committed by GitHub
Browse files

Merge pull request #4 from Maedkill12/feature/router

router
parents 873cf802 882a66ed
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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;
@@ -63,6 +69,7 @@ class Route
        }
    }


    public function getParams(): array
    {
        return $this->params;
Loading