src/Routing/Route.php
public function method($method)
    {
        // Convert to an array if needed
        if (!is_array($method)) {
            $method = [$method];
        }

        $this->method = $method;
        return $this;
    }
public function method($method)
    {
        // Convert to an array if needed
        if (!is_array($method)) {
            $method = [$method];
        }

        $this->method = $method;
        return $this;
    }
public function method ( $ method ) { // Convert to an array if needed if ( ! is_array ( $ method ) ) { $ method = [ $ method ] ; } $ this -> method = $ method ; return $ this ; }
HTTP methods to accept.

@param mixed $method

@example
method('get');
method(['get', 'post']);
HTTP methods to accept .