diff options
Diffstat (limited to 'server/controllers/api/video-channel.ts')
-rw-r--r-- | server/controllers/api/video-channel.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/controllers/api/video-channel.ts b/server/controllers/api/video-channel.ts index c6d144f79..cdafa31dc 100644 --- a/server/controllers/api/video-channel.ts +++ b/server/controllers/api/video-channel.ts | |||
@@ -19,6 +19,7 @@ import { JobQueue } from '../../lib/job-queue' | |||
19 | import { deleteLocalActorImageFile, updateLocalActorImageFiles } from '../../lib/local-actor' | 19 | import { deleteLocalActorImageFile, updateLocalActorImageFiles } from '../../lib/local-actor' |
20 | import { createLocalVideoChannel, federateAllVideosOfChannel } from '../../lib/video-channel' | 20 | import { createLocalVideoChannel, federateAllVideosOfChannel } from '../../lib/video-channel' |
21 | import { | 21 | import { |
22 | apiRateLimiter, | ||
22 | asyncMiddleware, | 23 | asyncMiddleware, |
23 | asyncRetryTransactionMiddleware, | 24 | asyncRetryTransactionMiddleware, |
24 | authenticate, | 25 | authenticate, |
@@ -57,6 +58,8 @@ const reqBannerFile = createReqFiles([ 'bannerfile' ], MIMETYPES.IMAGE.MIMETYPE_ | |||
57 | 58 | ||
58 | const videoChannelRouter = express.Router() | 59 | const videoChannelRouter = express.Router() |
59 | 60 | ||
61 | videoChannelRouter.use(apiRateLimiter) | ||
62 | |||
60 | videoChannelRouter.get('/', | 63 | videoChannelRouter.get('/', |
61 | paginationValidator, | 64 | paginationValidator, |
62 | videoChannelsSortValidator, | 65 | videoChannelsSortValidator, |