mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Fix runner api rate limit bypass
This commit is contained in:
parent
923e41fa4f
commit
e915cde30e
26 changed files with 122 additions and 31 deletions
|
@ -19,6 +19,7 @@ import { JobQueue } from '../../lib/job-queue'
|
|||
import { deleteLocalActorImageFile, updateLocalActorImageFiles } from '../../lib/local-actor'
|
||||
import { createLocalVideoChannel, federateAllVideosOfChannel } from '../../lib/video-channel'
|
||||
import {
|
||||
apiRateLimiter,
|
||||
asyncMiddleware,
|
||||
asyncRetryTransactionMiddleware,
|
||||
authenticate,
|
||||
|
@ -57,6 +58,8 @@ const reqBannerFile = createReqFiles([ 'bannerfile' ], MIMETYPES.IMAGE.MIMETYPE_
|
|||
|
||||
const videoChannelRouter = express.Router()
|
||||
|
||||
videoChannelRouter.use(apiRateLimiter)
|
||||
|
||||
videoChannelRouter.get('/',
|
||||
paginationValidator,
|
||||
videoChannelsSortValidator,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue