This commit is contained in:
fencl
2024-01-02 10:39:28 +01:00
parent 2cfc1b1d7b
commit aa4ce5c604
4 changed files with 116 additions and 0 deletions

12
ADF/saveData.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$data = json_decode(file_get_contents('php://input'), true);
// Uložte hodnotu obličeje (a další data) na serveru
file_put_contents('data.json', json_encode($data));
echo json_encode(['success' => true]);
} else {
echo json_encode(['error' => 'Invalid request method']);
}
?>