diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-17 21:03:00 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-17 21:03:00 +0200 |
commit | a877d5acc5c52b8667c65f725bbca9a52e40ec48 (patch) | |
tree | 20b5dd56f71c7572360807f894e85e0ab729629f /server/middlewares/index.js | |
parent | 479f229198bdfcfd3a63d02babdddaa8b2209ccb (diff) | |
download | PeerTube-a877d5acc5c52b8667c65f725bbca9a52e40ec48.tar.gz PeerTube-a877d5acc5c52b8667c65f725bbca9a52e40ec48.tar.zst PeerTube-a877d5acc5c52b8667c65f725bbca9a52e40ec48.zip |
Add ability to sort videos list
Diffstat (limited to 'server/middlewares/index.js')
-rw-r--r-- | server/middlewares/index.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/middlewares/index.js b/server/middlewares/index.js index f0fad3418..35858da2c 100644 --- a/server/middlewares/index.js +++ b/server/middlewares/index.js | |||
@@ -3,12 +3,14 @@ | |||
3 | const oauth2 = require('./oauth2') | 3 | const oauth2 = require('./oauth2') |
4 | const pagination = require('./pagination') | 4 | const pagination = require('./pagination') |
5 | const reqValidatorsMiddleware = require('./reqValidators') | 5 | const reqValidatorsMiddleware = require('./reqValidators') |
6 | const sort = require('./sort') | ||
6 | const secureMiddleware = require('./secure') | 7 | const secureMiddleware = require('./secure') |
7 | 8 | ||
8 | const middlewares = { | 9 | const middlewares = { |
9 | oauth2: oauth2, | 10 | oauth2: oauth2, |
10 | pagination: pagination, | 11 | pagination: pagination, |
11 | reqValidators: reqValidatorsMiddleware, | 12 | reqValidators: reqValidatorsMiddleware, |
13 | sort: sort, | ||
12 | secure: secureMiddleware | 14 | secure: secureMiddleware |
13 | } | 15 | } |
14 | 16 | ||