diff options
Diffstat (limited to 'server/controllers/api/videos')
-rw-r--r-- | server/controllers/api/videos/index.ts | 3 |
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' | |||
15 | import { JobQueue } from '../../../lib/job-queue' | 15 | import { JobQueue } from '../../../lib/job-queue' |
16 | import { Hooks } from '../../../lib/plugins/hooks' | 16 | import { Hooks } from '../../../lib/plugins/hooks' |
17 | import { | 17 | import { |
18 | apiRateLimiter, | ||
18 | asyncMiddleware, | 19 | asyncMiddleware, |
19 | asyncRetryTransactionMiddleware, | 20 | asyncRetryTransactionMiddleware, |
20 | authenticate, | 21 | authenticate, |
@@ -50,6 +51,8 @@ import { viewRouter } from './view' | |||
50 | const auditLogger = auditLoggerFactory('videos') | 51 | const auditLogger = auditLoggerFactory('videos') |
51 | const videosRouter = express.Router() | 52 | const videosRouter = express.Router() |
52 | 53 | ||
54 | videosRouter.use(apiRateLimiter) | ||
55 | |||
53 | videosRouter.use('/', blacklistRouter) | 56 | videosRouter.use('/', blacklistRouter) |
54 | videosRouter.use('/', statsRouter) | 57 | videosRouter.use('/', statsRouter) |
55 | videosRouter.use('/', rateVideoRouter) | 58 | videosRouter.use('/', rateVideoRouter) |