Skip to content

Commit

Permalink
Merge pull request #180 from jaa134/fix-graphiql-handler
Browse files Browse the repository at this point in the history
fix: point GraphiQL handler to correct server path
  • Loading branch information
djhi authored Aug 7, 2024
2 parents 108a88f + a642f54 commit fecd16a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/graphiqlHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const graphiqlHandler = (req, res) => {
});
return res.end(
getGraphiqlHtml({
endpoint: '/',
endpoint: '/graphql',
})
);
};
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit fecd16a

Please sign in to comment.