mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +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
|
@ -9,6 +9,7 @@ import { getFormattedObjects } from '../../helpers/utils'
|
|||
import { JobQueue } from '../../lib/job-queue'
|
||||
import { Hooks } from '../../lib/plugins/hooks'
|
||||
import {
|
||||
apiRateLimiter,
|
||||
asyncMiddleware,
|
||||
authenticate,
|
||||
commonVideosFiltersValidator,
|
||||
|
@ -41,6 +42,8 @@ import { VideoPlaylistModel } from '../../models/video/video-playlist'
|
|||
|
||||
const accountsRouter = express.Router()
|
||||
|
||||
accountsRouter.use(apiRateLimiter)
|
||||
|
||||
accountsRouter.get('/',
|
||||
paginationValidator,
|
||||
accountsSortValidator,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue