mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix template CORS
This commit is contained in:
@@ -30,6 +30,7 @@ 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',
|
||||
|
||||
@@ -31,6 +31,7 @@ class XList extends Base
|
||||
->setHttpPath('/v1/functions/templates')
|
||||
->desc('List function templates')
|
||||
->label('scope', 'public')
|
||||
->groups(['api', 'functions'])
|
||||
->label('resourceType', RESOURCE_TYPE_FUNCTIONS)
|
||||
->label('sdk', new Method(
|
||||
namespace: 'functions',
|
||||
|
||||
@@ -30,6 +30,7 @@ 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',
|
||||
|
||||
@@ -31,6 +31,7 @@ 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',
|
||||
|
||||
Reference in New Issue
Block a user