Skip to content

Commit

Permalink
add recursive call protection
Browse files Browse the repository at this point in the history
  • Loading branch information
georg-stone committed Oct 2, 2024
1 parent 48e3e91 commit 75b5172
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/api/fetchFeed/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 75b5172

Please sign in to comment.