src/bitExpert/Pathfinder/RouteBuilder.php
public function accepting(string $method) : RouteBuilder
    {
        $method = strtoupper($method);
        $this->methods = array_unique(array_merge($this->methods, [$method]));

        return $this;
    }
public function accepting(string $method) : RouteBuilder
    {
        $method = strtoupper($method);
        $this->methods = array_unique(array_merge($this->methods, [$method]));

        return $this;
    }
Sets the method(s) which the route should accept.

@param string $method The HTTP method(s) the route should handle
@return RouteBuilder