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:
parent
7eef95353f
commit
0ff21c1c08
2 changed files with 6 additions and 24 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue