Skip to content

Commit fd25a7b

Browse files
committed
Bring this back
1 parent 30f052e commit fd25a7b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

app/Services/PloiAPI.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public function ignoreInsight($serverId, $insightId)
304304
{
305305
return $this->makeRequest('post', $this->apiUrl.'/servers/'.$serverId.'/insights/'.$insightId.'/ignore');
306306
}
307-
307+
308308
/**
309309
* Site Methods
310310
*/
@@ -348,11 +348,21 @@ public function deleteRepository($serverId, $siteId)
348348
return $this->makeRequest('delete', $this->apiUrl.'/servers/'.$serverId.'/sites/'.$siteId.'/repository');
349349
}
350350

351+
public function getTestDomain($serverId, $siteId)
352+
{
353+
return $this->makeRequest('get', $this->apiUrl.'/servers/'.$serverId.'/sites/'.$siteId.'/test-domain');
354+
}
355+
351356
public function enableTestDomain($serverId, $siteId)
352357
{
353358
return $this->makeRequest('post', $this->apiUrl.'/servers/'.$serverId.'/sites/'.$siteId.'/test-domain');
354359
}
355360

361+
public function disableTestDomain($serverId, $siteId)
362+
{
363+
return $this->makeRequest('delete', $this->apiUrl.'/servers/'.$serverId.'/sites/'.$siteId.'/test-domain');
364+
}
365+
356366
public function deploySite($serverId, $siteId, $data)
357367
{
358368
return $this->makeRequest('post', $this->apiUrl.'/servers/'.$serverId.'/sites/'.$siteId.'/deploy', $data);

0 commit comments

Comments
 (0)