Skip to content

Commit a642f54

Browse files
committed
fix: point GraphiQL handler to correct server path
1 parent 108a88f commit a642f54

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)