Files
ploi-core/app/Services/Ploi/Resources/Synchronize.php
Dennis c750f469bb Updates
- Generic demo check in base controller
- Site synchronization
- User show pagination preserve scroll
2021-08-03 11:58:38 +02:00

28 lines
565 B
PHP

<?php
namespace App\Services\Ploi\Resources;
use App\Services\Ploi\Ploi;
class Synchronize extends Resource
{
private $endpoint = 'synchronize';
public function __construct(Ploi $ploi = null, int $id = null)
{
parent::__construct($ploi, $id);
$this->setEndpoint($this->endpoint);
}
public function servers()
{
return $this->getPloi()->makeAPICall($this->getEndpoint() . '/servers');
}
public function sites()
{
return $this->getPloi()->makeAPICall($this->getEndpoint() . '/sites');
}
}