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
|
@ -4,10 +4,12 @@ import { bulkRemoveCommentsOfValidator } from '@server/middlewares/validators/bu
|
|||
import { VideoCommentModel } from '@server/models/video/video-comment'
|
||||
import { HttpStatusCode } from '@shared/models'
|
||||
import { BulkRemoveCommentsOfBody } from '@shared/models/bulk/bulk-remove-comments-of-body.model'
|
||||
import { asyncMiddleware, authenticate } from '../../middlewares'
|
||||
import { apiRateLimiter, asyncMiddleware, authenticate } from '../../middlewares'
|
||||
|
||||
const bulkRouter = express.Router()
|
||||
|
||||
bulkRouter.use(apiRateLimiter)
|
||||
|
||||
bulkRouter.post('/remove-comments-of',
|
||||
authenticate,
|
||||
asyncMiddleware(bulkRemoveCommentsOfValidator),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue