Skip to content

Commit

Permalink
Fixed search route
Browse files Browse the repository at this point in the history
  • Loading branch information
cultpodcasts committed Feb 17, 2024
1 parent 46a5703 commit 39c905f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39c905f

Please sign in to comment.