2024-10-22 11:00:10 +00:00
|
|
|
<?php
|
|
|
|
|
|
2024-10-22 15:01:38 +00:00
|
|
|
namespace Appwrite\Platform\Modules\Functions\Services;
|
2024-10-22 11:00:10 +00:00
|
|
|
|
2025-02-05 10:30:19 +00:00
|
|
|
use Appwrite\Platform\Modules\Functions\Http\Deployments\Create as CreateDeployment;
|
|
|
|
|
use Appwrite\Platform\Modules\Functions\Http\Functions\Create as CreateFunction;
|
|
|
|
|
use Appwrite\Platform\Modules\Functions\Http\Functions\XList as ListFunctions;
|
|
|
|
|
use Appwrite\Platform\Modules\Functions\Http\Functions\Update as UpdateFunction;
|
|
|
|
|
use Appwrite\Platform\Modules\Functions\Http\Runtimes\XList as ListRuntimes;
|
2024-10-22 11:00:10 +00:00
|
|
|
use Utopia\Platform\Service;
|
|
|
|
|
|
|
|
|
|
class Http extends Service
|
|
|
|
|
{
|
|
|
|
|
public function __construct()
|
|
|
|
|
{
|
|
|
|
|
$this->type = Service::TYPE_HTTP;
|
|
|
|
|
$this->addAction(CreateFunction::getName(), new CreateFunction());
|
|
|
|
|
$this->addAction(UpdateFunction::getName(), new UpdateFunction());
|
2025-02-03 09:32:01 +00:00
|
|
|
$this->addAction(ListFunctions::getName(), new ListFunctions());
|
|
|
|
|
$this->addAction(ListRuntimes::getName(), new ListRuntimes());
|
2024-10-22 11:00:10 +00:00
|
|
|
$this->addAction(CreateDeployment::getName(), new CreateDeployment());
|
|
|
|
|
}
|
|
|
|
|
}
|