From 39c905f70f75193eb532b8a837d11bdea4975394 Mon Sep 17 00:00:00 2001 From: Jon Breen Date: Sat, 17 Feb 2024 18:55:50 +0000 Subject: [PATCH] Fixed search route --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 7f0f950..492f69c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -44,7 +44,7 @@ export default { return new Response(object.body, { headers }); } - if (pathname.startsWith(searchRoute) && request.method==="GET") { + if (pathname.startsWith(searchRoute) && request.method==="POST") { const url = `${env.apihost}`; return request