Skip to content

Commit

Permalink
Fix: remove unnecessary trailing slash from REST paths. (#11992) (#11995
Browse files Browse the repository at this point in the history
)

(cherry picked from commit 4167ac5)

Signed-off-by: dblock <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 7365414 commit b72f1d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public final class RestRemoteClusterInfoAction extends BaseRestHandler {

@Override
public List<Route> routes() {
return singletonList(new Route(GET, "_remote/info"));
return singletonList(new Route(GET, "/_remote/info"));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ public class RestPutMappingAction extends BaseRestHandler {
public List<Route> routes() {
return unmodifiableList(
asList(
new Route(POST, "/{index}/_mapping/"),
new Route(PUT, "/{index}/_mapping/"),
new Route(POST, "/{index}/_mappings/"),
new Route(PUT, "/{index}/_mappings/")
new Route(POST, "/{index}/_mapping"),
new Route(PUT, "/{index}/_mapping"),
new Route(POST, "/{index}/_mappings"),
new Route(PUT, "/{index}/_mappings")
)
);
}
Expand Down

0 comments on commit b72f1d1

Please sign in to comment.