diff options
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, |