Change GQL endpoint for gateway server from /graphql to / (#38)

This commit is contained in:
prathamesh0 2023-11-23 16:15:57 +05:30 committed by GitHub
parent 4b1c8c6c90
commit 581e7d76f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -52,6 +52,7 @@ async function makeGatewaySchema () {
export const gatewayApp = createYoga({
schema: makeGatewaySchema(),
maskedErrors: false,
graphqlEndpoint: '/',
graphiql: {
title: 'Azimuth Watchers',
defaultQuery: `#

View File

@ -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'));