andre 7 bulan lalu
induk
melakukan
ae508da59d
1 mengubah file dengan 0 tambahan dan 4 penghapusan
  1. 0 4
      index.php

+ 0 - 4
index.php

@@ -91,16 +91,12 @@ switch ($endpoint) {
                 error_log("POST: " . print_r($_POST, true));
             }
             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)));
         }
         if ($requestMethod === 'GET' && !empty($username) && !empty($domain)) {
             if ($GLOBALS['debug'] == true) {
                 error_log("GET: " . print_r($_GET, true));
             }
             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)));
         }
         break;
     case 'revert':