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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user