enhance(backend): configure ratelimit for notification creation apis

This commit is contained in:
syuilo 2023-09-12 15:38:00 +09:00
parent f9fc743c05
commit 42c7aad251
2 changed files with 10 additions and 0 deletions

View file

@ -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;

View file

@ -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 = {