1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Server: video.list -> video.listForApi (with pagination, sort...)

This commit is contained in:
Chocobozzz 2016-08-16 21:51:04 +02:00
parent 7eef95353f
commit 0ff21c1c08
2 changed files with 6 additions and 24 deletions

View file

@ -142,7 +142,7 @@ function getVideo (req, res, next) {
}
function listVideos (req, res, next) {
Video.list(req.query.start, req.query.count, req.query.sort, function (err, videosList, videosTotal) {
Video.listForApi(req.query.start, req.query.count, req.query.sort, function (err, videosList, videosTotal) {
if (err) return next(err)
res.json(getFormatedVideos(videosList, videosTotal))