private function addRoute($method, $pattern, $action)
{
if (is_array($method)) {
foreach ($method as $verb) {
$this->routes[$verb . $pattern] = ['method' => $verb, 'uri' => self::patternFactory($pattern), 'action' => $action];
}
} else {
$this->routes[$method . $pattern] = ['method' => $method, 'uri' => self::patternFactory($pattern), 'action' => $action];
}
}