2024-10-22 15:01:38 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Appwrite\Platform\Modules\Sites\Services;
|
|
|
|
|
|
2024-10-23 15:07:28 +00:00
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Deployments\CancelDeployment;
|
2024-10-22 17:45:49 +00:00
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Deployments\CreateDeployment;
|
2024-10-23 15:07:28 +00:00
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Deployments\DeleteDeployment;
|
2024-10-24 16:02:26 +00:00
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Deployments\DownloadBuild;
|
2024-10-23 15:07:28 +00:00
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Deployments\DownloadDeployment;
|
|
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Deployments\GetDeployment;
|
|
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Deployments\ListDeployments;
|
|
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Deployments\RebuildDeployment;
|
|
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Deployments\UpdateDeployment;
|
2024-10-22 15:01:38 +00:00
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Sites\CreateSite;
|
2024-10-24 08:49:43 +00:00
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Sites\DeleteSite;
|
2024-10-23 10:19:07 +00:00
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Sites\GetSite;
|
2024-10-24 13:21:40 +00:00
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Sites\GetSitesUsage;
|
|
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Sites\GetSiteUsage;
|
2024-10-23 10:19:07 +00:00
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Sites\ListFrameworks;
|
|
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Sites\ListSites;
|
2024-10-24 13:21:40 +00:00
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Sites\ListTemplates;
|
2024-10-23 10:19:07 +00:00
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Sites\UpdateSite;
|
2024-10-24 08:49:43 +00:00
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Variables\CreateVariable;
|
|
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Variables\DeleteVariable;
|
|
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Variables\GetVariable;
|
|
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Variables\ListVariables;
|
|
|
|
|
use Appwrite\Platform\Modules\Sites\Http\Variables\UpdateVariable;
|
2024-10-22 15:01:38 +00:00
|
|
|
use Utopia\Platform\Service;
|
|
|
|
|
|
|
|
|
|
class Http extends Service
|
|
|
|
|
{
|
|
|
|
|
public function __construct()
|
|
|
|
|
{
|
|
|
|
|
$this->type = Service::TYPE_HTTP;
|
|
|
|
|
$this->addAction(CreateSite::getName(), new CreateSite());
|
2024-10-23 10:19:07 +00:00
|
|
|
$this->addAction(GetSite::getName(), new GetSite());
|
|
|
|
|
$this->addAction(ListSites::getName(), new ListSites());
|
|
|
|
|
$this->addAction(UpdateSite::getName(), new UpdateSite());
|
2024-10-24 08:49:43 +00:00
|
|
|
$this->addAction(DeleteSite::getName(), new DeleteSite());
|
2024-10-23 10:19:07 +00:00
|
|
|
$this->addAction(ListFrameworks::getName(), new ListFrameworks());
|
2024-10-22 17:45:49 +00:00
|
|
|
$this->addAction(CreateDeployment::getName(), new CreateDeployment());
|
2024-10-23 15:07:28 +00:00
|
|
|
$this->addAction(GetDeployment::getName(), new GetDeployment());
|
|
|
|
|
$this->addAction(ListDeployments::getName(), new ListDeployments());
|
|
|
|
|
$this->addAction(UpdateDeployment::getName(), new UpdateDeployment());
|
|
|
|
|
$this->addAction(DeleteDeployment::getName(), new DeleteDeployment());
|
|
|
|
|
$this->addAction(DownloadDeployment::getName(), new DownloadDeployment());
|
2024-10-24 16:02:26 +00:00
|
|
|
$this->addAction(DownloadBuild::getName(), new DownloadBuild());
|
2024-10-23 15:07:28 +00:00
|
|
|
$this->addAction(RebuildDeployment::getName(), new RebuildDeployment());
|
|
|
|
|
$this->addAction(CancelDeployment::getName(), new CancelDeployment());
|
2024-10-24 08:49:43 +00:00
|
|
|
$this->addAction(CreateVariable::getName(), new CreateVariable());
|
|
|
|
|
$this->addAction(GetVariable::getName(), new GetVariable());
|
|
|
|
|
$this->addAction(ListVariables::getName(), new ListVariables());
|
|
|
|
|
$this->addAction(UpdateVariable::getName(), new UpdateVariable());
|
|
|
|
|
$this->addAction(DeleteVariable::getName(), new DeleteVariable());
|
2024-10-24 13:21:40 +00:00
|
|
|
$this->addAction(ListTemplates::getName(), new ListTemplates());
|
|
|
|
|
$this->addAction(GetSiteUsage::getName(), new GetSiteUsage());
|
|
|
|
|
$this->addAction(GetSitesUsage::getName(), new GetSitesUsage());
|
2024-10-22 15:01:38 +00:00
|
|
|
}
|
|
|
|
|
}
|