prefix endpoints with _

Original commit: elastic/x-pack-elasticsearch@b300803aa5
This commit is contained in:
Areek Zillur 2014-10-27 22:20:15 -04:00
parent 021974fb22
commit 5a63b6bb8b
3 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ public class RestDeleteLicenseAction extends BaseRestHandler {
@Inject
public RestDeleteLicenseAction(Settings settings, RestController controller, Client client) {
super(settings, controller, client);
controller.registerHandler(DELETE, "/licenses/{features}", this);
controller.registerHandler(DELETE, "/_licenses/{features}", this);
}

View File

@ -27,7 +27,7 @@ public class RestGetLicenseAction extends BaseRestHandler {
@Inject
public RestGetLicenseAction(Settings settings, RestController controller, Client client) {
super(settings, controller, client);
controller.registerHandler(GET, "/licenses", this);
controller.registerHandler(GET, "/_licenses", this);
}
@Override

View File

@ -25,8 +25,8 @@ public class RestPutLicenseAction extends BaseRestHandler {
@Inject
public RestPutLicenseAction(Settings settings, RestController controller, Client client) {
super(settings, controller, client);
controller.registerHandler(PUT, "/licenses", this);
controller.registerHandler(POST, "/licenses", this);
controller.registerHandler(PUT, "/_licenses", this);
controller.registerHandler(POST, "/_licenses", this);
}