Skip to content

Commit

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

Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock authored Jan 23, 2024
1 parent c529265 commit 4167ac5
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 4167ac5

Please sign in to comment.