Initial commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
include 'db.php';
|
||||
|
||||
$data = json_decode(file_get_contents("php://input"));
|
||||
|
||||
$id = $data->id;
|
||||
|
||||
$conn->query("DELETE FROM polygons WHERE id=$id");
|
||||
|
||||
echo json_encode(["status"=>"deleted"]);
|
||||
?>
|
||||
Reference in New Issue
Block a user