aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/controllers/api/v1/users.js
blob: f45b470777229a1c7a2d7e6aa2716c5ebc835262 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

            

                                                     





                                                  
                                                                          









                                                                              
'use strict'

const express = require('express')
const oAuth2 = require('../../../middlewares/oauth2')

const middleware = require('../../../middlewares')
const cacheMiddleware = middleware.cache

const router = express.Router()

router.post('/token', cacheMiddleware.cache(false), oAuth2.token, success)

// ---------------------------------------------------------------------------

module.exports = router

// ---------------------------------------------------------------------------

function success (req, res, next) {
  res.end()
}