]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/middlewares/sort.js
3 const sortMiddleware
= {
4 setVideosSort: setVideosSort
7 function setVideosSort (req
, res
, next
) {
8 if (!req
.query
.sort
) req
.query
.sort
= '-createdDate'
13 // ---------------------------------------------------------------------------
15 module
.exports
= sortMiddleware