Feat: Use newsletter.planetrenox.com for sub/unsub (lynchmark pool)

Subscribe form now posts to newsletter.planetrenox.com/api/sub with a
Turnstile token; unsubscribe posts to /api/unsub. Drops the old Resend
Pages functions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 02:18:08 +00:00
co-authored by Claude Opus 5.5
parent a55bfead8d
commit 88aad3106c
4 changed files with 9 additions and 61 deletions
+1 -1
View File
@@ -41,7 +41,7 @@
msg.textContent='Processing...';
msg.classList.remove('hidden');
try{
const r=await fetch('/api/unsubscribe',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({email:document.getElementById('email').value})});
const r=await fetch('https://newsletter.planetrenox.com/api/unsub',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({pool:'lynchmark',email:document.getElementById('email').value})});
const d=await r.json();
if(d.ok){msg.textContent='✓ Unsubscribed';msg.className='text-center text-sm text-green-600';}
else{msg.textContent=d.error||'Error';msg.className='text-center text-sm text-red-600';}