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.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/server/controllers/api/v1/users.js b/server/controllers/api/v1/users.js
index acb860c66..f45b47077 100644
--- a/server/controllers/api/v1/users.js
+++ b/server/controllers/api/v1/users.js
@@ -1,15 +1,14 @@
1'use strict' 1'use strict'
2 2
3var express = require('express') 3const express = require('express')
4var oAuth2 = require('../../../middlewares/oauth2') 4const oAuth2 = require('../../../middlewares/oauth2')
5 5
6const middleware = require('../../../middlewares') 6const middleware = require('../../../middlewares')
7const cacheMiddleware = middleware.cache 7const cacheMiddleware = middleware.cache
8 8
9const router = express.Router() 9const router = express.Router()
10 10
11router.post('/token', cacheMiddleware.cache(false), oAuth2.token(), success) 11router.post('/token', cacheMiddleware.cache(false), oAuth2.token, success)
12router.get('/authenticate', cacheMiddleware.cache(false), oAuth2.authenticate(), success)
13 12
14// --------------------------------------------------------------------------- 13// ---------------------------------------------------------------------------
15 14