mirror of
https://github.com/lynchmarkHQ/lynchmark.com.git
synced 2026-10-15 08:37:53 +00:00
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:
+1
-1
@@ -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';}
|
||||
|
||||
Reference in New Issue
Block a user