Skip to content

Commit

Permalink
Run spotlessApply
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Jul 10, 2023
1 parent 20577ac commit 9f805c2
Showing 1 changed file with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand All @@ -90,18 +89,18 @@ public RestRemoteHelloAction(ExtensionsRunner runner) {
@Override
public List<NamedRoute> 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()
);
}

Expand Down

0 comments on commit 9f805c2

Please sign in to comment.