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:
parent
1c627fd8d2
commit
1333ab1f2d
8 changed files with 32 additions and 5 deletions
|
@ -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)
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue