private function getRoutes($all = false) { if ($all) { return $this->routes; } $method = self::getRequestMethod(); $routes = empty($this->routes[$method]) ? array() : $this->routes[$method]; return $routes; }