diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-13 16:31:14 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-13 16:31:14 +0200 |
commit | b3b926474204ad736ec434aafc8afc6bc55079f6 (patch) | |
tree | ba235886357a8c032fea7ef17cd9ab9519ea6a2b /server/middlewares | |
parent | 5dda52c924763a889e98b4cf97c588b34ef01812 (diff) | |
download | PeerTube-b3b926474204ad736ec434aafc8afc6bc55079f6.tar.gz PeerTube-b3b926474204ad736ec434aafc8afc6bc55079f6.tar.zst PeerTube-b3b926474204ad736ec434aafc8afc6bc55079f6.zip |
Authenticate before make/quit friends (server + tests)
Diffstat (limited to 'server/middlewares')
-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 a0b07705d..ffd19337c 100644 --- a/server/middlewares/index.js +++ b/server/middlewares/index.js | |||
@@ -1,9 +1,11 @@ | |||
1 | 'use strict' | 1 | 'use strict' |
2 | 2 | ||
3 | const oauth2 = require('./oauth2') | ||
3 | const reqValidatorsMiddleware = require('./reqValidators') | 4 | const reqValidatorsMiddleware = require('./reqValidators') |
4 | const secureMiddleware = require('./secure') | 5 | const secureMiddleware = require('./secure') |
5 | 6 | ||
6 | const middlewares = { | 7 | const middlewares = { |
8 | oauth2: oauth2, | ||
7 | reqValidators: reqValidatorsMiddleware, | 9 | reqValidators: reqValidatorsMiddleware, |
8 | secure: secureMiddleware | 10 | secure: secureMiddleware |
9 | } | 11 | } |