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
|
|
@ -47,6 +47,12 @@ export const meta = {
|
|||
optional: false, nullable: false,
|
||||
ref: 'Antenna',
|
||||
},
|
||||
|
||||
// 2 calls per second
|
||||
limit: {
|
||||
duration: 1000,
|
||||
max: 2,
|
||||
},
|
||||
} as const;
|
||||
|
||||
export const paramDef = {
|
||||
|
|
|
|||
|
|
@ -24,6 +24,12 @@ export const meta = {
|
|||
id: 'b34dcf9d-348f-44bb-99d0-6c9314cfe2df',
|
||||
},
|
||||
},
|
||||
|
||||
// 2 calls per second
|
||||
limit: {
|
||||
duration: 1000,
|
||||
max: 2,
|
||||
},
|
||||
} as const;
|
||||
|
||||
export const paramDef = {
|
||||
|
|
|
|||
|
|
@ -25,6 +25,12 @@ export const meta = {
|
|||
ref: 'Antenna',
|
||||
},
|
||||
},
|
||||
|
||||
// 3 calls per second
|
||||
limit: {
|
||||
duration: 1000,
|
||||
max: 3,
|
||||
},
|
||||
} as const;
|
||||
|
||||
export const paramDef = {
|
||||
|
|
|
|||
|
|
@ -41,6 +41,12 @@ export const meta = {
|
|||
ref: 'Note',
|
||||
},
|
||||
},
|
||||
|
||||
// 10 calls per 5 seconds
|
||||
limit: {
|
||||
duration: 1000 * 5,
|
||||
max: 10,
|
||||
},
|
||||
} as const;
|
||||
|
||||
export const paramDef = {
|
||||
|
|
|
|||
|
|
@ -30,6 +30,12 @@ export const meta = {
|
|||
optional: false, nullable: false,
|
||||
ref: 'Antenna',
|
||||
},
|
||||
|
||||
// 3 calls per second
|
||||
limit: {
|
||||
duration: 1000,
|
||||
max: 3,
|
||||
},
|
||||
} as const;
|
||||
|
||||
export const paramDef = {
|
||||
|
|
|
|||
|
|
@ -45,6 +45,12 @@ export const meta = {
|
|||
optional: false, nullable: false,
|
||||
ref: 'Antenna',
|
||||
},
|
||||
|
||||
// 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