From 581e7d76f988c27bd9f91490ffbbe5fc88d9c296 Mon Sep 17 00:00:00 2001 From: prathamesh0 <42446521+prathamesh0@users.noreply.github.com> Date: Thu, 23 Nov 2023 16:15:57 +0530 Subject: [PATCH] Change GQL endpoint for gateway server from /graphql to / (#38) --- packages/gateway-server/src/gateway.ts | 1 + packages/gateway-server/src/index.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/gateway-server/src/gateway.ts b/packages/gateway-server/src/gateway.ts index 470561f..283e6f8 100644 --- a/packages/gateway-server/src/gateway.ts +++ b/packages/gateway-server/src/gateway.ts @@ -52,6 +52,7 @@ async function makeGatewaySchema () { export const gatewayApp = createYoga({ schema: makeGatewaySchema(), maskedErrors: false, + graphqlEndpoint: '/', graphiql: { title: 'Azimuth Watchers', defaultQuery: `# diff --git a/packages/gateway-server/src/index.ts b/packages/gateway-server/src/index.ts index 96c78b6..9c70bc4 100644 --- a/packages/gateway-server/src/index.ts +++ b/packages/gateway-server/src/index.ts @@ -10,4 +10,4 @@ import { gatewayApp } from './gateway'; const log = debug('vulcanize:server'); const server = createServer(gatewayApp); -server.listen(4000, () => log('gateway running at http://localhost:4000/graphql')); +server.listen(4000, () => log('gateway running at http://localhost:4000'));