mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
Fix template CORS
This commit is contained in:
parent
8d47d62d7a
commit
c303aa57ce
4 changed files with 4 additions and 0 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue