aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/videos
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api/videos')
-rw-r--r--server/controllers/api/videos/index.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts
index 41992155d..a34325e79 100644
--- a/server/controllers/api/videos/index.ts
+++ b/server/controllers/api/videos/index.ts
@@ -15,6 +15,7 @@ import { sequelizeTypescript } from '../../../initializers/database'
15import { JobQueue } from '../../../lib/job-queue' 15import { JobQueue } from '../../../lib/job-queue'
16import { Hooks } from '../../../lib/plugins/hooks' 16import { Hooks } from '../../../lib/plugins/hooks'
17import { 17import {
18 apiRateLimiter,
18 asyncMiddleware, 19 asyncMiddleware,
19 asyncRetryTransactionMiddleware, 20 asyncRetryTransactionMiddleware,
20 authenticate, 21 authenticate,
@@ -50,6 +51,8 @@ import { viewRouter } from './view'
50const auditLogger = auditLoggerFactory('videos') 51const auditLogger = auditLoggerFactory('videos')
51const videosRouter = express.Router() 52const videosRouter = express.Router()
52 53
54videosRouter.use(apiRateLimiter)
55
53videosRouter.use('/', blacklistRouter) 56videosRouter.use('/', blacklistRouter)
54videosRouter.use('/', statsRouter) 57videosRouter.use('/', statsRouter)
55videosRouter.use('/', rateVideoRouter) 58videosRouter.use('/', rateVideoRouter)