broke apprise notification function into its own module to be used by multiple scripts
Security / security (push) Successful in 58s

This commit is contained in:
2026-05-31 20:23:49 -05:00
parent d0ac1d8e4c
commit 76052a87e4
4 changed files with 40 additions and 39 deletions
+3 -2
View File
@@ -1,5 +1,7 @@
[string] $ListenUrl = "http://+:8080/"
Import-Module ./AppriseNotification.psm1
function Write-JsonResponse
{
param(
@@ -91,8 +93,7 @@ function Receive-Webhook
Write-Host "Payload: <empty>"
}
# Add your real webhook handling here.
# Example: inspect $payload.event, save data, or call another API.
Send-AppriseNotification -title "Donetick Webhook Received" -content ($payload | ConvertTo-Json -Depth 20)
Write-JsonResponse -Response $response -StatusCode 200 -Body @{
ok = $true