1
0
Fork 0
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:
Chocobozzz 2018-04-25 10:21:38 +02:00
parent 48dce1c90d
commit 6b738c7a31
No known key found for this signature in database
GPG key ID: 583A612D890159BE
18 changed files with 383 additions and 141 deletions

View file

@ -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