From f1a7dc5638ec106ae446eb859294f0e0601ee568 Mon Sep 17 00:00:00 2001 From: madgerm Date: Sat, 25 Apr 2026 10:45:27 +0200 Subject: [PATCH] Add www/api/public/index.php --- www/api/public/index.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 www/api/public/index.php diff --git a/www/api/public/index.php b/www/api/public/index.php new file mode 100644 index 0000000..3509002 --- /dev/null +++ b/www/api/public/index.php @@ -0,0 +1,20 @@ + 'ok', 'message' => 'API läuft']); + break; + case 'POST': + $input = json_decode(file_get_contents('php://input'), true); + echo json_encode(['status' => 'received', 'data' => $input]); + break; + default: + http_response_code(405); + echo json_encode(['error' => 'Method not allowed']); +}