add /_shutdown to the REST endpoints

This commit is contained in:
kimchy 2010-08-23 18:01:47 +03:00
parent 5900e01a0d
commit 0e47898902
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ public class RestNodesShutdownAction extends BaseRestHandler {
@Inject public RestNodesShutdownAction(Settings settings, Client client, RestController controller) {
super(settings, client);
controller.registerHandler(RestRequest.Method.POST, "/_shutdown", this);
controller.registerHandler(RestRequest.Method.POST, "/_cluster/nodes/_shutdown", this);
controller.registerHandler(RestRequest.Method.POST, "/_cluster/nodes/{nodeId}/_shutdown", this);
}