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

24 lines
867 B
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;
use Appwrite\Platform\Modules\Proxy\Http\Rules\Function\Create as CreateFunctionRule;
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-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-02-12 18:28:25 +00:00
}
}