diff options
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 | ||