1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

Remove the cache middleware

This commit is contained in:
Chocobozzz 2016-05-13 16:13:00 +02:00
parent 788a7e0202
commit 5dda52c924
6 changed files with 11 additions and 43 deletions

View file

@ -4,14 +4,12 @@ const config = require('config')
const express = require('express')
const oAuth2 = require('../../../middlewares/oauth2')
const middleware = require('../../../middlewares')
const cacheMiddleware = middleware.cache
const Users = require('../../../models/users')
const router = express.Router()
router.get('/client', cacheMiddleware.cache(false), getAngularClient)
router.post('/token', cacheMiddleware.cache(false), oAuth2.token, success)
router.get('/client', getAngularClient)
router.post('/token', oAuth2.token, success)
// ---------------------------------------------------------------------------