Attempting a simpler configuration. Podman doesn't like it. Moving to Docker for sanity check.

This commit is contained in:
2025-07-03 09:56:47 +10:00
parent 4ce23cc392
commit 5c77dbc2a3
179 changed files with 10 additions and 16 deletions

13
adm/cal/api.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
header("Content-Type: application/json");
include('lib/main.php');
$ret = array( "err" => "unknown command" );
if ( in_array("cmd", array_keys($_GET)) and $_GET["cmd"] == "get" ) {
$ret = getEvents();
} elseif ( $_POST["cmd"] == "put" ) {
$json = base64_decode($_POST["payload"]);
file_put_contents("dat/events.json", $json);
$ret = getEvents();
}
print(json_encode($ret));
?>