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