aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/overviews.ts2
-rw-r--r--server/controllers/api/server/stats.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/overviews.ts b/server/controllers/api/overviews.ts
index 23706767a..46e76ac6b 100644
--- a/server/controllers/api/overviews.ts
+++ b/server/controllers/api/overviews.ts
@@ -11,7 +11,7 @@ import * as memoizee from 'memoizee'
11const overviewsRouter = express.Router() 11const overviewsRouter = express.Router()
12 12
13overviewsRouter.get('/videos', 13overviewsRouter.get('/videos',
14 asyncMiddleware(cacheRoute(ROUTE_CACHE_LIFETIME.OVERVIEWS.VIDEOS)), 14 asyncMiddleware(cacheRoute()(ROUTE_CACHE_LIFETIME.OVERVIEWS.VIDEOS)),
15 asyncMiddleware(getVideosOverview) 15 asyncMiddleware(getVideosOverview)
16) 16)
17 17
diff --git a/server/controllers/api/server/stats.ts b/server/controllers/api/server/stats.ts
index 951b98209..3616c074d 100644
--- a/server/controllers/api/server/stats.ts
+++ b/server/controllers/api/server/stats.ts
@@ -14,7 +14,7 @@ import { CONFIG } from '../../../initializers/config'
14const statsRouter = express.Router() 14const statsRouter = express.Router()
15 15
16statsRouter.get('/stats', 16statsRouter.get('/stats',
17 asyncMiddleware(cacheRoute(ROUTE_CACHE_LIFETIME.STATS)), 17 asyncMiddleware(cacheRoute()(ROUTE_CACHE_LIFETIME.STATS)),
18 asyncMiddleware(getStats) 18 asyncMiddleware(getStats)
19) 19)
20 20