Simplifying readdition of route

This commit is contained in:
Jonathan Lounsbury
2014-12-04 14:26:08 -05:00
parent d999b802bc
commit 51f7dbd724

View File

@@ -124,7 +124,7 @@ public class ProxyRouteLocator {
ZuulRoute defaultRoute = routesMap.get(DEFAULT_ROUTE);
// Move the defaultServiceId to the end
routesMap.remove(DEFAULT_ROUTE);
routesMap.put(DEFAULT_ROUTE, new ZuulRoute(defaultRoute.getPath(), defaultRoute.getLocation()));
routesMap.put(DEFAULT_ROUTE, defaultRoute);
}
LinkedHashMap<String, ZuulRoute> values = new LinkedHashMap<>();