mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +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
|
@ -16,6 +16,7 @@ import {
|
|||
abusesSortValidator,
|
||||
abuseUpdateValidator,
|
||||
addAbuseMessageValidator,
|
||||
apiRateLimiter,
|
||||
asyncMiddleware,
|
||||
asyncRetryTransactionMiddleware,
|
||||
authenticate,
|
||||
|
@ -32,6 +33,8 @@ import { AccountModel } from '../../models/account/account'
|
|||
|
||||
const abuseRouter = express.Router()
|
||||
|
||||
abuseRouter.use(apiRateLimiter)
|
||||
|
||||
abuseRouter.get('/',
|
||||
openapiOperationDoc({ operationId: 'getAbuses' }),
|
||||
authenticate,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue