mirror of
https://github.com/4ev-link/4ev.link.git
synced 2026-01-13 16:18:05 +00:00
Refactor: Replace NTFY_TOPIC with NTFY_URL for flexible notifications
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
const ntfy = (env,title,msg,p=2) =>
|
const ntfy = (env,title,msg,p=2) =>
|
||||||
env.NTFY_TOPIC
|
env.NTFY_URL
|
||||||
? fetch(`https://ntfy.sh/${env.NTFY_TOPIC}`,{
|
? fetch(env.NTFY_URL,{
|
||||||
method:"POST",
|
method:"POST",
|
||||||
headers:{
|
headers:{
|
||||||
"Title":`🗑️ ${title}`,
|
"Title":`🗑️ ${title}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user