public function match($methods, $pattern, $func)
    {
        $pattern = $this->setBaseRoute($pattern);

        foreach (explode('|', $methods) as $method) {
            $this->routes[$method][] = ['pattern' => $pattern, 'fn' => $func];
        }

        return $this;
    }