Skip to content

Commit

Permalink
add playground back
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzmatazzz committed Sep 19, 2024
1 parent 699882e commit f0fffa8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ export default {
}
return response;
}

if (url.pathname === graphQLOptions.playgroundEndpoint) {
//response = playground(request, graphQLOptions);
return graphiql(graphQLOptions);
}

if (useNightbotOnUrl(url)) {
return await getNightbotResponse(request, url, env, ctx);
Expand Down

0 comments on commit f0fffa8

Please sign in to comment.