test
This commit is contained in:
12
ADF/saveData.php
Normal file
12
ADF/saveData.php
Normal 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']);
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user