mirror of
https://github.com/appwrite/appwrite
synced 2026-05-21 16:08:22 +00:00
Add createFunction abuse labels
This commit is contained in:
parent
ef150ac2c0
commit
6a9eeeb370
1 changed files with 3 additions and 0 deletions
|
|
@ -141,6 +141,9 @@ App::post('/v1/functions')
|
|||
->label('resourceType', RESOURCE_TYPE_FUNCTIONS)
|
||||
->label('audits.event', 'function.create')
|
||||
->label('audits.resource', 'function/{response.$id}')
|
||||
->label('abuse-key', 'projectId:{projectId}')
|
||||
->label('abuse-limit', 50)
|
||||
->label('abuse-time', APP_LIMIT_WRITE_RATE_PERIOD_DEFAULT * 24) // 1 day
|
||||
->label('sdk.auth', [APP_AUTH_TYPE_KEY])
|
||||
->label('sdk.namespace', 'functions')
|
||||
->label('sdk.method', 'create')
|
||||
|
|
|
|||
Loading…
Reference in a new issue