Skip to content

Commit

Permalink
Add bot logging to newsletter subscribe endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
zoul committed Nov 21, 2024
1 parent 502c3e2 commit 878e513
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/account/newsletters/subscribe/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export async function POST(request: NextRequest): Promise<Response> {
}

if (requestData.acceptTerms === true) {
console.info("Bot subscribe detected, ignoring.");
return new Response("User subscription was successful, LOL", {
status: 200,
headers,
Expand Down

0 comments on commit 878e513

Please sign in to comment.