Files
html/api/webhook-alert.php
2026-04-12 22:57:03 +02:00

2 lines
266 B
PHP

<?php header("Content-Type:application/json");$d=json_decode(file_get_contents("php://input"),1);$log="/var/log/webhook-alert.log";file_put_contents($log,date("c")." ".json_encode($d)."
",FILE_APPEND);echo json_encode(["ok"=>true,"webhook"=>"alert","received"=>$d]);