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:
parent
788a7e0202
commit
5dda52c924
6 changed files with 11 additions and 43 deletions
|
@ -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)
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue