mirror of
https://github.com/zhigang1992/workers-graphql-server.git
synced 2026-01-12 09:43:41 +08:00
feat: use / as playground
This commit is contained in:
@@ -4,11 +4,11 @@ const setCors = require('./utils/setCors')
|
||||
|
||||
const graphQLOptions = {
|
||||
// Set the path for the GraphQL server
|
||||
baseEndpoint: '/',
|
||||
baseEndpoint: '/graphql',
|
||||
|
||||
// Set the path for the GraphQL playground
|
||||
// This option can be removed to disable the playground route
|
||||
playgroundEndpoint: '/___graphql',
|
||||
playgroundEndpoint: '/',
|
||||
|
||||
// When a request's path isn't matched, forward it to the origin
|
||||
forwardUnmatchedRequestsToOrigin: false,
|
||||
|
||||
Reference in New Issue
Block a user