Skip to content

Commit fecd16a

Browse files
authored
Merge pull request #180 from jaa134/fix-graphiql-handler
fix: point GraphiQL handler to correct server path
2 parents 108a88f + a642f54 commit fecd16a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/graphiqlHandler.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const graphiqlHandler = (req, res) => {
44
});
55
return res.end(
66
getGraphiqlHtml({
7-
endpoint: '/',
7+
endpoint: '/graphql',
88
})
99
);
1010
};
@@ -71,7 +71,6 @@ const getGraphiqlHtml = ({ endpoint }) => `
7171
const root = ReactDOM.createRoot(document.getElementById('graphiql'));
7272
const fetcher = GraphiQL.createFetcher({
7373
url: '${endpoint}',
74-
headers: { 'X-Example-Header': 'foo' },
7574
});
7675
const explorerPlugin = GraphiQLPluginExplorer.explorerPlugin();
7776
root.render(

0 commit comments

Comments
 (0)