mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 11:03:09 +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',
|
kind: 'write:notifications',
|
||||||
|
|
||||||
|
limit: {
|
||||||
|
duration: 1000 * 60,
|
||||||
|
max: 10,
|
||||||
|
},
|
||||||
|
|
||||||
errors: {
|
errors: {
|
||||||
},
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
|
@ -13,6 +13,11 @@ export const meta = {
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
|
|
||||||
kind: 'write:notifications',
|
kind: 'write:notifications',
|
||||||
|
|
||||||
|
limit: {
|
||||||
|
duration: 1000 * 60,
|
||||||
|
max: 10,
|
||||||
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const paramDef = {
|
export const paramDef = {
|
||||||
|
|
Loading…
Reference in a new issue