app/views/decidim/api/graphiql/show.html.erb in decidim-api-0.26.10 vs app/views/decidim/api/graphiql/show.html.erb in decidim-api-0.27.0.rc1

- old
+ new

@@ -1,23 +1,25 @@ <!DOCTYPE html> <html> <head> <title><%= Decidim::GraphiQL::Rails.config.title || "Decidim API" %></title> <%= stylesheet_pack_tag("decidim_api_graphiql") %> - <%= javascript_pack_tag("decidim_api_graphiql", defer: false) %> </head> <body> <div id="graphiql-container"> Loading... </div> + <%= javascript_pack_tag "decidim_api_graphiql", defer: false %> + <% js_configs = { graphql_endpoint: graphql_endpoint_path, default_query: Decidim::GraphiQL::Rails.config.initial_query, request_headers: JSON.pretty_generate(Decidim::GraphiQL::Rails.config.resolve_headers(self)) } %> + <script> window.Decidim.config.set(<%== js_configs.to_json %>); </script> </body> </html>