1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 10:49:28 +02:00

add operationId doc middleware to so API endpoints

This commit is contained in:
Rigel Kent 2021-06-04 09:16:23 +02:00
parent 1c627fd8d2
commit 1333ab1f2d
No known key found for this signature in database
GPG key ID: 5E53E96A494E452F
8 changed files with 32 additions and 5 deletions

View file

@ -3,12 +3,13 @@ import { OAuthClientLocal } from '../../../shared'
import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes'
import { logger } from '../../helpers/logger'
import { CONFIG } from '../../initializers/config'
import { asyncMiddleware } from '../../middlewares'
import { asyncMiddleware, openapiOperationDoc } from '../../middlewares'
import { OAuthClientModel } from '../../models/oauth/oauth-client'
const oauthClientsRouter = express.Router()
oauthClientsRouter.get('/local',
openapiOperationDoc({ operationId: 'getOAuthClient' }),
asyncMiddleware(getLocalClient)
)