diff --git a/sample/src/main/java/org/opensearch/sdk/sample/helloworld/rest/RestRemoteHelloAction.java b/sample/src/main/java/org/opensearch/sdk/sample/helloworld/rest/RestRemoteHelloAction.java index 6a49ea0f..bb444839 100644 --- a/sample/src/main/java/org/opensearch/sdk/sample/helloworld/rest/RestRemoteHelloAction.java +++ b/sample/src/main/java/org/opensearch/sdk/sample/helloworld/rest/RestRemoteHelloAction.java @@ -69,7 +69,6 @@ import java.util.function.Function; import static org.opensearch.rest.RestRequest.Method.GET; -import static org.opensearch.rest.RestRequest.Method.PUT; import static org.opensearch.rest.RestStatus.OK; /** @@ -90,18 +89,18 @@ public RestRemoteHelloAction(ExtensionsRunner runner) { @Override public List routes() { return List.of( - new NamedRoute.Builder().method(GET) - .path("/hello/{name}") - .handler(handleRemoteGetRequest) - .uniqueName(routePrefix("remote_greet_with_name")) - .legacyActionNames(Collections.emptySet()) - .build(), - new NamedRoute.Builder().method(GET) - .path("/schedule/hello") - .handler(handleScheduleRequest) - .uniqueName(routePrefix("scheduled_greet")) - .legacyActionNames(Collections.emptySet()) - .build() + new NamedRoute.Builder().method(GET) + .path("/hello/{name}") + .handler(handleRemoteGetRequest) + .uniqueName(routePrefix("remote_greet_with_name")) + .legacyActionNames(Collections.emptySet()) + .build(), + new NamedRoute.Builder().method(GET) + .path("/schedule/hello") + .handler(handleScheduleRequest) + .uniqueName(routePrefix("scheduled_greet")) + .legacyActionNames(Collections.emptySet()) + .build() ); }