What does `route.http_path` start with? If it's `/`, then this could probably just be `(controller.prefix + route.http_path).gsub('//', '/')`, no?