File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ public function ignoreInsight($serverId, $insightId)
304
304
{
305
305
return $ this ->makeRequest ('post ' , $ this ->apiUrl .'/servers/ ' .$ serverId .'/insights/ ' .$ insightId .'/ignore ' );
306
306
}
307
-
307
+
308
308
/**
309
309
* Site Methods
310
310
*/
@@ -348,11 +348,21 @@ public function deleteRepository($serverId, $siteId)
348
348
return $ this ->makeRequest ('delete ' , $ this ->apiUrl .'/servers/ ' .$ serverId .'/sites/ ' .$ siteId .'/repository ' );
349
349
}
350
350
351
+ public function getTestDomain ($ serverId , $ siteId )
352
+ {
353
+ return $ this ->makeRequest ('get ' , $ this ->apiUrl .'/servers/ ' .$ serverId .'/sites/ ' .$ siteId .'/test-domain ' );
354
+ }
355
+
351
356
public function enableTestDomain ($ serverId , $ siteId )
352
357
{
353
358
return $ this ->makeRequest ('post ' , $ this ->apiUrl .'/servers/ ' .$ serverId .'/sites/ ' .$ siteId .'/test-domain ' );
354
359
}
355
360
361
+ public function disableTestDomain ($ serverId , $ siteId )
362
+ {
363
+ return $ this ->makeRequest ('delete ' , $ this ->apiUrl .'/servers/ ' .$ serverId .'/sites/ ' .$ siteId .'/test-domain ' );
364
+ }
365
+
356
366
public function deploySite ($ serverId , $ siteId , $ data )
357
367
{
358
368
return $ this ->makeRequest ('post ' , $ this ->apiUrl .'/servers/ ' .$ serverId .'/sites/ ' .$ siteId .'/deploy ' , $ data );
You can’t perform that action at this time.
0 commit comments