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
|
@ -4,10 +4,12 @@ import { OAuthClientModel } from '@server/models/oauth/oauth-client'
|
|||
import { HttpStatusCode, OAuthClientLocal } from '@shared/models'
|
||||
import { logger } from '../../helpers/logger'
|
||||
import { CONFIG } from '../../initializers/config'
|
||||
import { asyncMiddleware, openapiOperationDoc } from '../../middlewares'
|
||||
import { apiRateLimiter, asyncMiddleware, openapiOperationDoc } from '../../middlewares'
|
||||
|
||||
const oauthClientsRouter = express.Router()
|
||||
|
||||
oauthClientsRouter.use(apiRateLimiter)
|
||||
|
||||
oauthClientsRouter.get('/local',
|
||||
openapiOperationDoc({ operationId: 'getOAuthClient' }),
|
||||
asyncMiddleware(getLocalClient)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue