Commit 2c211bb9 by Nepxion

修改接口

parent b75bafe4
...@@ -77,9 +77,9 @@ public class RouterController { ...@@ -77,9 +77,9 @@ public class RouterController {
} }
// 获取全路径的路由信息(routeServiceIds按调用服务名的前后次序排列,起始节点的服务名不能加上去。如果多个用“;”分隔,不允许出现空格) // 获取全路径的路由信息(routeServiceIds按调用服务名的前后次序排列,起始节点的服务名不能加上去。如果多个用“;”分隔,不允许出现空格)
@RequestMapping(path = "/routeAll", method = RequestMethod.POST) @RequestMapping(path = "/routes", method = RequestMethod.POST)
public RouterEntity routeAll(@RequestBody String routeServiceIds) { public RouterEntity routes(@RequestBody String routeServiceIds) {
return executeRouteAll(routeServiceIds); return routeTree(routeServiceIds);
} }
public List<ServiceInstance> getInstanceList(String serviceId) { public List<ServiceInstance> getInstanceList(String serviceId) {
...@@ -167,7 +167,7 @@ public class RouterController { ...@@ -167,7 +167,7 @@ public class RouterController {
return routerEntityList; return routerEntityList;
} }
public RouterEntity executeRouteAll(String routeServiceIds) { public RouterEntity routeTree(String routeServiceIds) {
if (StringUtils.isEmpty(routeServiceIds)) { if (StringUtils.isEmpty(routeServiceIds)) {
throw new PluginException("Route serviceIds is empty"); throw new PluginException("Route serviceIds is empty");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment