Skip to content

Commit b72f1d1

Browse files
Fix: remove unnecessary trailing slash from REST paths. (#11992) (#11995)
(cherry picked from commit 4167ac5) Signed-off-by: dblock <dblock@amazon.com> 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>
1 parent 7365414 commit b72f1d1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

server/src/main/java/org/opensearch/rest/action/admin/cluster/RestRemoteClusterInfoAction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public final class RestRemoteClusterInfoAction extends BaseRestHandler {
5353

5454
@Override
5555
public List<Route> routes() {
56-
return singletonList(new Route(GET, "_remote/info"));
56+
return singletonList(new Route(GET, "/_remote/info"));
5757
}
5858

5959
@Override

server/src/main/java/org/opensearch/rest/action/admin/indices/RestPutMappingAction.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ public class RestPutMappingAction extends BaseRestHandler {
6666
public List<Route> routes() {
6767
return unmodifiableList(
6868
asList(
69-
new Route(POST, "/{index}/_mapping/"),
70-
new Route(PUT, "/{index}/_mapping/"),
71-
new Route(POST, "/{index}/_mappings/"),
72-
new Route(PUT, "/{index}/_mappings/")
69+
new Route(POST, "/{index}/_mapping"),
70+
new Route(PUT, "/{index}/_mapping"),
71+
new Route(POST, "/{index}/_mappings"),
72+
new Route(PUT, "/{index}/_mappings")
7373
)
7474
);
7575
}

0 commit comments

Comments
 (0)