add rate limits to all public endpoints
This commit is contained in:
parent
a38d8a91a1
commit
e3b826db5a
243 changed files with 2908 additions and 9 deletions
|
|
@ -37,6 +37,12 @@ export const meta = {
|
|||
id: '2e4ef874-8bf0-4b4b-b069-4598f6d05817',
|
||||
},
|
||||
},
|
||||
|
||||
// 20 calls per hour (match create)
|
||||
limit: {
|
||||
duration: 1000 * 60 * 60,
|
||||
max: 20,
|
||||
},
|
||||
} as const;
|
||||
|
||||
export const paramDef = {
|
||||
|
|
|
|||
|
|
@ -26,6 +26,12 @@ export const meta = {
|
|||
ref: 'RenoteMuting',
|
||||
},
|
||||
},
|
||||
|
||||
// 2 calls per second
|
||||
limit: {
|
||||
duration: 1000,
|
||||
max: 2,
|
||||
},
|
||||
} as const;
|
||||
|
||||
export const paramDef = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue