master
Matt Huntington 8 years ago
parent 13a436c44a
commit cf958c67e4

@ -0,0 +1,3 @@
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^DELETE$
RewriteRule ^([0-9]+)$ delete.php?id=$1

@ -0,0 +1,8 @@
<?php
header('Content-Type: application/json');
include 'data/people.php';
array_splice($people, $_REQUEST['id'], 1);
echo json_encode($people);
?>
Loading…
Cancel
Save