diff --git a/server/index.js b/server/index.js index 51dfb46..f3189b7 100644 --- a/server/index.js +++ b/server/index.js @@ -13,14 +13,14 @@ const GRAPHIQL_PATH = '/graphiql'; const app = express(); -// Set up the GraphQL endpoint -app.use(GRAPHQL_PATH, bodyParser.json(), graphqlExpress({ schema })); - // Set up GraphiQL app.use(GRAPHIQL_PATH, graphiqlExpress({ endpointURL: GRAPHQL_PATH, })); +// Set up the GraphQL endpoint +app.use(GRAPHQL_PATH, bodyParser.json(), graphqlExpress({ schema })); + app.listen(PORT); console.log(`GraphQL server started, listening at http://localhost:${PORT}${GRAPHQL_PATH}`);