Skip to content

Commit

Permalink
alibaba#387 refactor service operate url
Browse files Browse the repository at this point in the history
  • Loading branch information
nkorange committed Dec 5, 2018
1 parent 7852397 commit 3ae5e20
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class ServiceController {
@Autowired
protected DomainsManager domainsManager;

@RequestMapping(value = "/create", method = RequestMethod.PUT)
@RequestMapping(value = "", method = RequestMethod.PUT)
public String create(HttpServletRequest request) throws Exception {
String serviceName = WebUtils.required(request, "serviceName");

Expand Down Expand Up @@ -79,7 +79,7 @@ public String create(HttpServletRequest request) throws Exception {
return "ok";
}

@RequestMapping(value = "/remove", method = RequestMethod.DELETE)
@RequestMapping(value = "", method = RequestMethod.DELETE)
public String remove(HttpServletRequest request) throws Exception {

String serviceName = WebUtils.required(request, "serviceName");
Expand All @@ -98,7 +98,7 @@ public String remove(HttpServletRequest request) throws Exception {
return "ok";
}

@RequestMapping(value = "/detail")
@RequestMapping(value = "", method = RequestMethod.GET)
public Service detail(HttpServletRequest request) throws Exception {

String serviceName = WebUtils.required(request, "serviceName");
Expand Down Expand Up @@ -150,8 +150,7 @@ public JSONObject list(HttpServletRequest request) throws Exception {

}


@RequestMapping(value = "/update", method = RequestMethod.POST)
@RequestMapping(value = "", method = RequestMethod.POST)
public String update(HttpServletRequest request) throws Exception {

String serviceName = WebUtils.required(request, "serviceName");
Expand Down

0 comments on commit 3ae5e20

Please sign in to comment.