From a642f54505706f59b1539d85586e29419c455aa8 Mon Sep 17 00:00:00 2001 From: jacob-alspaw Date: Thu, 1 Aug 2024 11:27:11 -0600 Subject: [PATCH] fix: point GraphiQL handler to correct server path --- src/graphiqlHandler.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/graphiqlHandler.js b/src/graphiqlHandler.js index fc59751..caeef96 100644 --- a/src/graphiqlHandler.js +++ b/src/graphiqlHandler.js @@ -4,7 +4,7 @@ export const graphiqlHandler = (req, res) => { }); return res.end( getGraphiqlHtml({ - endpoint: '/', + endpoint: '/graphql', }) ); }; @@ -71,7 +71,6 @@ const getGraphiqlHtml = ({ endpoint }) => ` const root = ReactDOM.createRoot(document.getElementById('graphiql')); const fetcher = GraphiQL.createFetcher({ url: '${endpoint}', - headers: { 'X-Example-Header': 'foo' }, }); const explorerPlugin = GraphiQLPluginExplorer.explorerPlugin(); root.render(