mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 11:30:13 +08:00
feat: add get ip endpoint
* rename handler * change rate limit
This commit is contained in:
1 parent
3b9ea9ea50
commit
b9a79eb435
6 files changed
+22
-4
No files matched your search
@@ -2,5 +2,5 @@ import { rateLimit } from 'express-rate-limit'
|
||||
|
||||
export default rateLimit({
|
||||
windowMs: 60 * 1000, // 1 minute
|
||||
max: 20,
|
||||
max: 100,
|
||||
})
|
||||
Reference in new issue
Block a user