aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/v1/users.js
diff options
context:
space:
mode:
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