mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
31 lines
1.4 KiB
PHP
31 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace Appwrite\Platform\Modules\Proxy\Services;
|
|
|
|
use Appwrite\Platform\Modules\Proxy\Http\Rules\API\Create as CreateAPIRule;
|
|
use Appwrite\Platform\Modules\Proxy\Http\Rules\Delete as DeleteRule;
|
|
use Appwrite\Platform\Modules\Proxy\Http\Rules\Function\Create as CreateFunctionRule;
|
|
use Appwrite\Platform\Modules\Proxy\Http\Rules\Get as GetRule;
|
|
use Appwrite\Platform\Modules\Proxy\Http\Rules\Redirect\Create as CreateRedirectRule;
|
|
use Appwrite\Platform\Modules\Proxy\Http\Rules\Site\Create as CreateSiteRule;
|
|
use Appwrite\Platform\Modules\Proxy\Http\Rules\Status\Update as UpdateRuleStatus;
|
|
use Appwrite\Platform\Modules\Proxy\Http\Rules\XList as ListRules;
|
|
use Utopia\Platform\Service;
|
|
|
|
class Http extends Service
|
|
{
|
|
public function __construct()
|
|
{
|
|
$this->type = Service::TYPE_HTTP;
|
|
|
|
// Rules
|
|
$this->addAction(CreateAPIRule::getName(), new CreateAPIRule());
|
|
$this->addAction(CreateSiteRule::getName(), new CreateSiteRule());
|
|
$this->addAction(CreateFunctionRule::getName(), new CreateFunctionRule());
|
|
$this->addAction(CreateRedirectRule::getName(), new CreateRedirectRule());
|
|
$this->addAction(GetRule::getName(), new GetRule());
|
|
$this->addAction(ListRules::getName(), new ListRules());
|
|
$this->addAction(DeleteRule::getName(), new DeleteRule());
|
|
$this->addAction(UpdateRuleStatus::getName(), new UpdateRuleStatus());
|
|
}
|
|
}
|