]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/oauth-clients.ts
Adapt CLI to new commands
[github/Chocobozzz/PeerTube.git] / server / controllers / api / oauth-clients.ts
index 48a10d31f61f4bebae743231fbd7bcacc6f569e6..15bbf5c4df12a62a8dcd26e06bebe584b55018bf 100644 (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)
 )