master
Matt Huntington 8 years ago
parent 073ad012f7
commit 817bb55d71

@ -19,7 +19,7 @@ if($_REQUEST['action'] === 'index'){
$requestBody = file_get_contents('php://input'); $requestBody = file_get_contents('php://input');
$body = json_decode($requestBody); $body = json_decode($requestBody);
$updatedCompany = new Company(null, $body->name); $updatedCompany = new Company(null, $body->name);
$allCompanies = People::update($_REQUEST['id'], $updatedCompany); $allCompanies = Companies::update($_REQUEST['id'], $updatedCompany);
echo json_encode($allCompanies); echo json_encode($allCompanies);
} }

Loading…
Cancel
Save