Skip to content

Commit

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

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

if (!useNightbotOnUrl(url) && !useLiteApiOnUrl(url) && url.pathname !== graphQLOptions.baseEndpoint) {
return new Response('Not found', { status: 404 });
}

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

0 comments on commit 699882e

Please sign in to comment.