mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-13 16:17:54 +00:00
Refactor: Use NTFY_URL env var instead of constructing from NTFY_TOPIC
This commit is contained in:
@@ -17,7 +17,7 @@ export async function onRequestPost({ request, env }) {
|
|||||||
return new Response(`{"error":"Resend error: ${text}"}`, { status: 500, headers: { 'Content-Type': 'application/json' } });
|
return new Response(`{"error":"Resend error: ${text}"}`, { status: 500, headers: { 'Content-Type': 'application/json' } });
|
||||||
}
|
}
|
||||||
|
|
||||||
await fetch(`https://ntfy.sh/${env.NTFY_TOPIC}`, {
|
await fetch(env.NTFY_URL, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { Priority: '3', Title: `🔕 Unsubscribe` },
|
headers: { Priority: '3', Title: `🔕 Unsubscribe` },
|
||||||
body: email
|
body: email
|
||||||
|
|||||||
Reference in New Issue
Block a user