public function match ($methods, $pattern, $fn) {

        $pattern = $this->baseroute . '/' . trim($pattern, '/');
        $pattern = $this->baseroute ? rtrim($pattern, '/') : $pattern;

        $route = new Route ($pattern);
        $route->setFunction ($fn);
        $route->setModule ($this->module);

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

        return $route;
    }