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']); +}