Update GraphiQlHandler configuration

This commit updates the `GraphiQlHandler` auto-configuration after a
constructor change was done in Spring GraphQL for WebSocket support in
GraphiQL.
This commit is contained in:
Brian Clozel 2022-01-10 18:27:50 +01:00
parent 27857f095a
commit fc794f17e1
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ public class GraphQlWebFluxAutoConfiguration {
handler::handleRequest);
if (properties.getGraphiql().isEnabled()) {
GraphiQlHandler graphiQlHandler = new GraphiQlHandler(graphQLPath);
GraphiQlHandler graphiQlHandler = new GraphiQlHandler(graphQLPath, properties.getWebsocket().getPath());
builder = builder.GET(properties.getGraphiql().getPath(), graphiQlHandler::handleRequest);
}

View File

@ -118,7 +118,7 @@ public class GraphQlWebMvcAutoConfiguration {
.and(RequestPredicates.accept(MediaType.APPLICATION_JSON)), handler::handleRequest);
if (properties.getGraphiql().isEnabled()) {
GraphiQlHandler graphiQLHandler = new GraphiQlHandler(graphQLPath);
GraphiQlHandler graphiQLHandler = new GraphiQlHandler(graphQLPath, properties.getWebsocket().getPath());
builder = builder.GET(properties.getGraphiql().getPath(), graphiQLHandler::handleRequest);
}