diff options
Diffstat (limited to 'server/controllers/api/video-playlist.ts')
-rw-r--r-- | server/controllers/api/video-playlist.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/controllers/api/video-playlist.ts b/server/controllers/api/video-playlist.ts index de32dec88..fe00034ed 100644 --- a/server/controllers/api/video-playlist.ts +++ b/server/controllers/api/video-playlist.ts | |||
@@ -25,6 +25,7 @@ import { sendCreateVideoPlaylist, sendDeleteVideoPlaylist, sendUpdateVideoPlayli | |||
25 | import { getLocalVideoPlaylistActivityPubUrl, getLocalVideoPlaylistElementActivityPubUrl } from '../../lib/activitypub/url' | 25 | import { getLocalVideoPlaylistActivityPubUrl, getLocalVideoPlaylistElementActivityPubUrl } from '../../lib/activitypub/url' |
26 | import { updatePlaylistMiniatureFromExisting } from '../../lib/thumbnail' | 26 | import { updatePlaylistMiniatureFromExisting } from '../../lib/thumbnail' |
27 | import { | 27 | import { |
28 | apiRateLimiter, | ||
28 | asyncMiddleware, | 29 | asyncMiddleware, |
29 | asyncRetryTransactionMiddleware, | 30 | asyncRetryTransactionMiddleware, |
30 | authenticate, | 31 | authenticate, |
@@ -52,6 +53,8 @@ const reqThumbnailFile = createReqFiles([ 'thumbnailfile' ], MIMETYPES.IMAGE.MIM | |||
52 | 53 | ||
53 | const videoPlaylistRouter = express.Router() | 54 | const videoPlaylistRouter = express.Router() |
54 | 55 | ||
56 | videoPlaylistRouter.use(apiRateLimiter) | ||
57 | |||
55 | videoPlaylistRouter.get('/privacies', listVideoPlaylistPrivacies) | 58 | videoPlaylistRouter.get('/privacies', listVideoPlaylistPrivacies) |
56 | 59 | ||
57 | videoPlaylistRouter.get('/', | 60 | videoPlaylistRouter.get('/', |