From 75b5172e284b1d9dab89949a2427d3dd5ae396fa Mon Sep 17 00:00:00 2001 From: georg-stone Date: Wed, 2 Oct 2024 19:24:34 -0400 Subject: [PATCH] add recursive call protection --- src/app/api/fetchFeed/route.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/api/fetchFeed/route.js b/src/app/api/fetchFeed/route.js index ee0f3d1..056f57b 100644 --- a/src/app/api/fetchFeed/route.js +++ b/src/app/api/fetchFeed/route.js @@ -8,6 +8,10 @@ export async function GET(req) { return new Response('Missing "url" parameter', { status: 400 }); } + if (url.endsWith("/api/fetchFeed")) { + return new Response("nice try", { status: 400 }); + } + try { const response = await fetch(url);