From f33878895028c757da1bb6a20baa953925607ea9 Mon Sep 17 00:00:00 2001 From: Scott Rossillo Date: Fri, 5 Aug 2022 18:53:35 -0400 Subject: [PATCH] Fix graphiql on webmvc --- .../graphql/dgs/webmvc/autoconfigure/GraphiQLConfigurer.kt | 2 +- .../src/main/resources/{static => }/graphiql/index.html | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename graphql-dgs-spring-webmvc-autoconfigure/src/main/resources/{static => }/graphiql/index.html (100%) diff --git a/graphql-dgs-spring-webmvc-autoconfigure/src/main/kotlin/com/netflix/graphql/dgs/webmvc/autoconfigure/GraphiQLConfigurer.kt b/graphql-dgs-spring-webmvc-autoconfigure/src/main/kotlin/com/netflix/graphql/dgs/webmvc/autoconfigure/GraphiQLConfigurer.kt index ba6c66fd44..c86a774222 100644 --- a/graphql-dgs-spring-webmvc-autoconfigure/src/main/kotlin/com/netflix/graphql/dgs/webmvc/autoconfigure/GraphiQLConfigurer.kt +++ b/graphql-dgs-spring-webmvc-autoconfigure/src/main/kotlin/com/netflix/graphql/dgs/webmvc/autoconfigure/GraphiQLConfigurer.kt @@ -53,7 +53,7 @@ open class GraphiQLConfigurer( logger.info("Configuring GraphiQL to use GraphQL endpoint at '{}'", graphqlPath) registry .addResourceHandler("/graphiql/**") - .addResourceLocations("classpath:/static/graphiql/") + .addResourceLocations("classpath:/graphiql/") .setCachePeriod(3600) .resourceChain(true) .addResolver(PathResourceResolver()) diff --git a/graphql-dgs-spring-webmvc-autoconfigure/src/main/resources/static/graphiql/index.html b/graphql-dgs-spring-webmvc-autoconfigure/src/main/resources/graphiql/index.html similarity index 100% rename from graphql-dgs-spring-webmvc-autoconfigure/src/main/resources/static/graphiql/index.html rename to graphql-dgs-spring-webmvc-autoconfigure/src/main/resources/graphiql/index.html