aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/v1/users.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-05-13 16:13:00 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-05-13 16:13:00 +0200
commit5dda52c924763a889e98b4cf97c588b34ef01812 (patch)
tree0616e61d825dbfee6e0183555e47cdb7b1d7f472 /server/controllers/api/v1/users.js
parent788a7e02029efae7c44bc4ec608493f67dac291a (diff)
downloadPeerTube-5dda52c924763a889e98b4cf97c588b34ef01812.tar.gz
PeerTube-5dda52c924763a889e98b4cf97c588b34ef01812.tar.zst
PeerTube-5dda52c924763a889e98b4cf97c588b34ef01812.zip
Remove the cache middleware
Diffstat (limited to 'server/controllers/api/v1/users.js')
-rw-r--r--server/controllers/api/v1/users.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/server/controllers/api/v1/users.js b/server/controllers/api/v1/users.js
index 0584d5cdf..54ff0d743 100644
--- a/server/controllers/api/v1/users.js
+++ b/server/controllers/api/v1/users.js
@@ -4,14 +4,12 @@ const config = require('config')
4const express = require('express') 4const express = require('express')
5const oAuth2 = require('../../../middlewares/oauth2') 5const oAuth2 = require('../../../middlewares/oauth2')
6 6
7const middleware = require('../../../middlewares')
8const cacheMiddleware = middleware.cache
9const Users = require('../../../models/users') 7const Users = require('../../../models/users')
10 8
11const router = express.Router() 9const router = express.Router()
12 10
13router.get('/client', cacheMiddleware.cache(false), getAngularClient) 11router.get('/client', getAngularClient)
14router.post('/token', cacheMiddleware.cache(false), oAuth2.token, success) 12router.post('/token', oAuth2.token, success)
15 13
16// --------------------------------------------------------------------------- 14// ---------------------------------------------------------------------------
17 15