mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Video channel API routes refractor
This commit is contained in:
parent
48dce1c90d
commit
6b738c7a31
18 changed files with 383 additions and 141 deletions
|
@ -126,7 +126,8 @@ async function addVideoChannelRetryWrapper (req: express.Request, res: express.R
|
|||
const videoChannel = await retryTransactionWrapper(addVideoChannel, options)
|
||||
return res.json({
|
||||
videoChannel: {
|
||||
id: videoChannel.id
|
||||
id: videoChannel.id,
|
||||
uuid: videoChannel.Actor.uuid
|
||||
}
|
||||
}).end()
|
||||
}
|
||||
|
@ -233,7 +234,6 @@ async function listVideoChannelVideos (req: express.Request, res: express.Respon
|
|||
return res.json(getFormattedObjects(resultList.data, resultList.total))
|
||||
}
|
||||
|
||||
|
||||
async function listAccountVideos (req: express.Request, res: express.Response, next: express.NextFunction) {
|
||||
const account: AccountModel = res.locals.account
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue