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