|
|
@@ -93,7 +93,6 @@ switch ($endpoint) {
|
|
|
SiteController::deploy(['zip' => $_POST['zip'], 'username' => $username, 'domain' => $domain]);
|
|
|
header('Content-Type: application/json; charset=utf-8', true);
|
|
|
echo json_encode(array('result' => array('id' => 'test123', 'error' => null)));
|
|
|
- exit();
|
|
|
}
|
|
|
if ($requestMethod === 'GET' && !empty($username) && !empty($domain)) {
|
|
|
if ($GLOBALS['debug'] == true) {
|
|
|
@@ -102,7 +101,6 @@ switch ($endpoint) {
|
|
|
SiteController::deploy(['vars' => $_GET, 'username' => $username, 'domain' => $domain]);
|
|
|
header('Content-Type: application/json; charset=utf-8', true);
|
|
|
echo json_encode(array('result' => array('status' => 'FINISHED', 'output' => null)));
|
|
|
- exit();
|
|
|
}
|
|
|
break;
|
|
|
case 'revert':
|