diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-13 16:13:00 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-13 16:13:00 +0200 |
commit | 5dda52c924763a889e98b4cf97c588b34ef01812 (patch) | |
tree | 0616e61d825dbfee6e0183555e47cdb7b1d7f472 /server/controllers/api/v1/users.js | |
parent | 788a7e02029efae7c44bc4ec608493f67dac291a (diff) | |
download | PeerTube-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.js | 6 |
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') | |||
4 | const express = require('express') | 4 | const express = require('express') |
5 | const oAuth2 = require('../../../middlewares/oauth2') | 5 | const oAuth2 = require('../../../middlewares/oauth2') |
6 | 6 | ||
7 | const middleware = require('../../../middlewares') | ||
8 | const cacheMiddleware = middleware.cache | ||
9 | const Users = require('../../../models/users') | 7 | const Users = require('../../../models/users') |
10 | 8 | ||
11 | const router = express.Router() | 9 | const router = express.Router() |
12 | 10 | ||
13 | router.get('/client', cacheMiddleware.cache(false), getAngularClient) | 11 | router.get('/client', getAngularClient) |
14 | router.post('/token', cacheMiddleware.cache(false), oAuth2.token, success) | 12 | router.post('/token', oAuth2.token, success) |
15 | 13 | ||
16 | // --------------------------------------------------------------------------- | 14 | // --------------------------------------------------------------------------- |
17 | 15 | ||