add rate limits to all public endpoints
This commit is contained in:
@@ -25,6 +25,12 @@ export const meta = {
|
||||
ref: 'Note',
|
||||
},
|
||||
},
|
||||
|
||||
// 10 calls per 5 seconds
|
||||
limit: {
|
||||
duration: 1000 * 5,
|
||||
max: 10,
|
||||
},
|
||||
} as const;
|
||||
|
||||
export const paramDef = {
|
||||
|
||||
Reference in New Issue
Block a user