2 lines
266 B
PHP
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]); |