1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +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

@ -24,6 +24,7 @@ import {
deleteAbuseMessageValidator,
ensureUserHasRight,
getAbuseValidator,
openapiOperationDoc,
paginationValidator,
setDefaultPagination,
setDefaultSort
@ -33,6 +34,7 @@ import { AccountModel } from '../../models/account/account'
const abuseRouter = express.Router()
abuseRouter.get('/',
openapiOperationDoc({ operationId: 'getAbuses' }),
authenticate,
ensureUserHasRight(UserRight.MANAGE_ABUSES),
paginationValidator,