public function any(string $pattern, $func)
    {
        if (is_array($func)) {
            if ($this->isPatternMatches($pattern)) {
                $this->middleware = $func['middleware'];
            }
            $func = end($func);
        }

        return $this->match('GET|POST|PUT|PATCH|DELETE|OPTIONS', $pattern, $func);
    }