diff --git a/app/controllers/general.php b/app/controllers/general.php index f2362544c6..d4728fb5af 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -555,7 +555,7 @@ App::init() */ App::init() - ->groups(['database', 'functions', 'messaging']) + ->groups(['database', 'functions', 'sites', 'messaging']) ->inject('project') ->inject('request') ->action(function (Document $project, Request $request) { diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Templates/Get.php b/src/Appwrite/Platform/Modules/Functions/Http/Templates/Get.php index 6819f6693c..e624b26de6 100644 --- a/src/Appwrite/Platform/Modules/Functions/Http/Templates/Get.php +++ b/src/Appwrite/Platform/Modules/Functions/Http/Templates/Get.php @@ -30,7 +30,6 @@ class Get extends Base ->setHttpPath('/v1/functions/templates/:templateId') ->desc('Get function template') ->label('scope', 'public') - ->groups(['api', 'functions']) ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) ->label('sdk', new Method( namespace: 'functions', diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Templates/XList.php b/src/Appwrite/Platform/Modules/Functions/Http/Templates/XList.php index 3250874ac5..619ad6a315 100644 --- a/src/Appwrite/Platform/Modules/Functions/Http/Templates/XList.php +++ b/src/Appwrite/Platform/Modules/Functions/Http/Templates/XList.php @@ -29,9 +29,8 @@ class XList extends Base $this ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) ->setHttpPath('/v1/functions/templates') - ->desc('List function templates') + ->desc('List templates') ->label('scope', 'public') - ->groups(['api', 'functions']) ->label('resourceType', RESOURCE_TYPE_FUNCTIONS) ->label('sdk', new Method( namespace: 'functions', diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Templates/Get.php b/src/Appwrite/Platform/Modules/Sites/Http/Templates/Get.php index b994dd2172..9d2991bce9 100644 --- a/src/Appwrite/Platform/Modules/Sites/Http/Templates/Get.php +++ b/src/Appwrite/Platform/Modules/Sites/Http/Templates/Get.php @@ -30,7 +30,6 @@ class Get extends Base ->setHttpPath('/v1/sites/templates/:templateId') ->desc('Get site template') ->label('scope', 'public') - ->groups(['api', 'sites']) ->label('sdk', new Method( namespace: 'sites', name: 'getTemplate', diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Templates/XList.php b/src/Appwrite/Platform/Modules/Sites/Http/Templates/XList.php index 00ece7f68b..3c27b75578 100644 --- a/src/Appwrite/Platform/Modules/Sites/Http/Templates/XList.php +++ b/src/Appwrite/Platform/Modules/Sites/Http/Templates/XList.php @@ -31,7 +31,6 @@ class XList extends Base ->setHttpPath('/v1/sites/templates') ->desc('List templates') ->label('scope', 'public') - ->groups(['api', 'sites']) ->label('sdk', new Method( namespace: 'sites', name: 'listTemplates', diff --git a/tests/e2e/Services/Functions/FunctionsCustomClientTest.php b/tests/e2e/Services/Functions/FunctionsCustomClientTest.php index 914a255663..9d8ce5a4ee 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomClientTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomClientTest.php @@ -276,7 +276,7 @@ class FunctionsCustomClientTest extends Scope */ // List all templates $templates = $this->client->call(Client::METHOD_GET, '/functions/templates', array_merge([ - 'content-type' => 'application/json', + 'content-type' => 'application/json' ], $this->getHeaders())); $this->assertEquals(200, $templates['headers']['status-code']);