Skip to content

Commit

Permalink
fix: playground path
Browse files Browse the repository at this point in the history
  • Loading branch information
Moumouls committed May 2, 2024
1 parent 283de20 commit a0338d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/GraphQL/ParseGraphQLServer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "parse-server",
"version": "7.1.0-alpha.6.moumouls",
"version": "7.1.0-alpha.6.moumouls.1",
"description": "An express module providing a Parse-compatible API server",
"main": "lib/index.js",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions src/GraphQL/ParseGraphQLServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class ParseGraphQLServer {

app.get(
this.config.playgroundPath ||
requiredParameter('You must provide a config.playgroundPath to applyPlayground!'),
requiredParameter('You must provide a config.playgroundPath to applyPlayground!'),
(_req, res) => {
res.setHeader('Content-Type', 'text/html');
res.write(
Expand All @@ -142,7 +142,7 @@ class ParseGraphQLServer {
new window.EmbeddedSandbox({
target: "#sandbox",
endpointIsEditable: false,
initialEndpoint: "${JSON.stringify(this.config.graphQLPath)}",
initialEndpoint: ${JSON.stringify(this.config.graphQLPath)},
handleRequest: (endpointUrl, options) => {
return fetch(endpointUrl, {
...options,
Expand Down

0 comments on commit a0338d2

Please sign in to comment.