diff options
author | Chocobozzz <me@florianbigard.com> | 2023-06-20 14:17:34 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-06-20 14:17:34 +0200 |
commit | e915cde30ec47258a2beeec5ca748c928b59858c (patch) | |
tree | f5692ab20c534a61487f3bd471bb6105ed58d88a /server/controllers/api/accounts.ts | |
parent | 923e41fa4f342019298b46e407ea1f0207f74205 (diff) | |
download | PeerTube-e915cde30ec47258a2beeec5ca748c928b59858c.tar.gz PeerTube-e915cde30ec47258a2beeec5ca748c928b59858c.tar.zst PeerTube-e915cde30ec47258a2beeec5ca748c928b59858c.zip |
Fix runner api rate limit bypass
Diffstat (limited to 'server/controllers/api/accounts.ts')
-rw-r--r-- | server/controllers/api/accounts.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/controllers/api/accounts.ts b/server/controllers/api/accounts.ts index 2d86d393c..96f36bf6f 100644 --- a/server/controllers/api/accounts.ts +++ b/server/controllers/api/accounts.ts | |||
@@ -9,6 +9,7 @@ import { getFormattedObjects } from '../../helpers/utils' | |||
9 | import { JobQueue } from '../../lib/job-queue' | 9 | import { JobQueue } from '../../lib/job-queue' |
10 | import { Hooks } from '../../lib/plugins/hooks' | 10 | import { Hooks } from '../../lib/plugins/hooks' |
11 | import { | 11 | import { |
12 | apiRateLimiter, | ||
12 | asyncMiddleware, | 13 | asyncMiddleware, |
13 | authenticate, | 14 | authenticate, |
14 | commonVideosFiltersValidator, | 15 | commonVideosFiltersValidator, |
@@ -41,6 +42,8 @@ import { VideoPlaylistModel } from '../../models/video/video-playlist' | |||
41 | 42 | ||
42 | const accountsRouter = express.Router() | 43 | const accountsRouter = express.Router() |
43 | 44 | ||
45 | accountsRouter.use(apiRateLimiter) | ||
46 | |||
44 | accountsRouter.get('/', | 47 | accountsRouter.get('/', |
45 | paginationValidator, | 48 | paginationValidator, |
46 | accountsSortValidator, | 49 | accountsSortValidator, |