diff options
Diffstat (limited to 'server/controllers/api/v1/videos.js')
-rw-r--r-- | server/controllers/api/v1/videos.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/v1/videos.js b/server/controllers/api/v1/videos.js index 1f939b077..0a441f146 100644 --- a/server/controllers/api/v1/videos.js +++ b/server/controllers/api/v1/videos.js | |||
@@ -142,7 +142,7 @@ function getVideo (req, res, next) { | |||
142 | } | 142 | } |
143 | 143 | ||
144 | function listVideos (req, res, next) { | 144 | function listVideos (req, res, next) { |
145 | Video.list(req.query.start, req.query.count, req.query.sort, function (err, videosList, videosTotal) { | 145 | Video.listForApi(req.query.start, req.query.count, req.query.sort, function (err, videosList, videosTotal) { |
146 | if (err) return next(err) | 146 | if (err) return next(err) |
147 | 147 | ||
148 | res.json(getFormatedVideos(videosList, videosTotal)) | 148 | res.json(getFormatedVideos(videosList, videosTotal)) |