mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 00:53:08 +02:00
enhance(backend): configure ratelimit for notification creation apis
This commit is contained in:
parent
f9fc743c05
commit
42c7aad251
2 changed files with 10 additions and 0 deletions
|
@ -14,6 +14,11 @@ export const meta = {
|
|||
|
||||
kind: 'write:notifications',
|
||||
|
||||
limit: {
|
||||
duration: 1000 * 60,
|
||||
max: 10,
|
||||
},
|
||||
|
||||
errors: {
|
||||
},
|
||||
} as const;
|
||||
|
|
|
@ -13,6 +13,11 @@ export const meta = {
|
|||
requireCredential: true,
|
||||
|
||||
kind: 'write:notifications',
|
||||
|
||||
limit: {
|
||||
duration: 1000 * 60,
|
||||
max: 10,
|
||||
},
|
||||
} as const;
|
||||
|
||||
export const paramDef = {
|
||||
|
|
Loading…
Reference in a new issue