From 699882e8a89057a1a9388c2fae2ed90ee22ec460 Mon Sep 17 00:00:00 2001 From: Razzmatazz Date: Thu, 19 Sep 2024 15:16:59 -0500 Subject: [PATCH] remove duplicate check --- index.mjs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/index.mjs b/index.mjs index 2595da95..3a4ad65b 100644 --- a/index.mjs +++ b/index.mjs @@ -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);