appwrite/src/Appwrite/Platform/Modules/Proxy/Services/Http.php

32 lines
1.4 KiB
PHP
Raw Normal View History

2025-02-12 18:28:25 +00:00
<?php
namespace Appwrite\Platform\Modules\Proxy\Services;
2025-02-22 17:56:51 +00:00
use Appwrite\Platform\Modules\Proxy\Http\Rules\API\Create as CreateAPIRule;
2025-09-10 10:43:21 +00:00
use Appwrite\Platform\Modules\Proxy\Http\Rules\Delete as DeleteRule;
2025-02-22 17:56:51 +00:00
use Appwrite\Platform\Modules\Proxy\Http\Rules\Function\Create as CreateFunctionRule;
2025-09-10 10:43:21 +00:00
use Appwrite\Platform\Modules\Proxy\Http\Rules\Get as GetRule;
2025-02-23 20:34:14 +00:00
use Appwrite\Platform\Modules\Proxy\Http\Rules\Redirect\Create as CreateRedirectRule;
2025-02-22 17:56:51 +00:00
use Appwrite\Platform\Modules\Proxy\Http\Rules\Site\Create as CreateSiteRule;
2025-09-10 10:43:21 +00:00
use Appwrite\Platform\Modules\Proxy\Http\Rules\Verification\Update as UpdateRuleVerification;
use Appwrite\Platform\Modules\Proxy\Http\Rules\XList as ListRules;
2025-02-12 18:28:25 +00:00
use Utopia\Platform\Service;
class Http extends Service
{
public function __construct()
{
$this->type = Service::TYPE_HTTP;
2025-02-22 17:56:51 +00:00
2025-02-12 18:28:25 +00:00
// Rules
2025-02-22 17:56:51 +00:00
$this->addAction(CreateAPIRule::getName(), new CreateAPIRule());
$this->addAction(CreateSiteRule::getName(), new CreateSiteRule());
$this->addAction(CreateFunctionRule::getName(), new CreateFunctionRule());
2025-02-23 20:34:14 +00:00
$this->addAction(CreateRedirectRule::getName(), new CreateRedirectRule());
2025-09-10 10:43:21 +00:00
$this->addAction(GetRule::getName(), new GetRule());
$this->addAction(ListRules::getName(), new ListRules());
$this->addAction(DeleteRule::getName(), new DeleteRule());
$this->addAction(UpdateRuleVerification::getName(), new UpdateRuleVerification());
2025-02-12 18:28:25 +00:00
}
}