Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nkorange committed Sep 26, 2018
1 parent b54a0a9 commit f1c5dac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public String queryList(String serviceName, String clusters, boolean healthyOnly
params.put("clusters", clusters);
params.put("healthyOnly", String.valueOf(healthyOnly));

return reqAPI(UtilAndComs.NACOS_URL_BASE + "/instances", params, "GET");
return reqAPI(UtilAndComs.NACOS_URL_BASE + "/instance/list", params, "GET");
}

private String doRegDom(Map<String, String> params) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public String update(HttpServletRequest request) throws Exception {
return addIP4Dom(request);
}

@RequestMapping(value = "/instances", method = RequestMethod.GET)
@RequestMapping(value = {"/instances", "/instance/list"}, method = RequestMethod.GET)
public JSONObject queryList(HttpServletRequest request) throws Exception {

Map<String, String[]> params = new HashMap<>(request.getParameterMap());
Expand Down

0 comments on commit f1c5dac

Please sign in to comment.