diff options
-rw-r--r-- | server/controllers/api/overviews.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/overviews.ts b/server/controllers/api/overviews.ts index 56f921ce5..da941c0ac 100644 --- a/server/controllers/api/overviews.ts +++ b/server/controllers/api/overviews.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import * as express from 'express' | 1 | import * as express from 'express' |
2 | import { buildNSFWFilter } from '../../helpers/express-utils' | 2 | import { buildNSFWFilter } from '../../helpers/express-utils' |
3 | import { VideoModel } from '../../models/video/video' | 3 | import { VideoModel } from '../../models/video/video' |
4 | import { asyncMiddleware, executeIfActivityPub } from '../../middlewares' | 4 | import { asyncMiddleware } from '../../middlewares' |
5 | import { TagModel } from '../../models/video/tag' | 5 | import { TagModel } from '../../models/video/tag' |
6 | import { VideosOverview } from '../../../shared/models/overviews' | 6 | import { VideosOverview } from '../../../shared/models/overviews' |
7 | import { OVERVIEWS, ROUTE_CACHE_LIFETIME } from '../../initializers' | 7 | import { OVERVIEWS, ROUTE_CACHE_LIFETIME } from '../../initializers' |
@@ -10,7 +10,7 @@ import { cacheRoute } from '../../middlewares/cache' | |||
10 | const overviewsRouter = express.Router() | 10 | const overviewsRouter = express.Router() |
11 | 11 | ||
12 | overviewsRouter.get('/videos', | 12 | overviewsRouter.get('/videos', |
13 | executeIfActivityPub(asyncMiddleware(cacheRoute(ROUTE_CACHE_LIFETIME.OVERVIEWS.VIDEOS))), | 13 | asyncMiddleware(cacheRoute(ROUTE_CACHE_LIFETIME.OVERVIEWS.VIDEOS)), |
14 | asyncMiddleware(getVideosOverview) | 14 | asyncMiddleware(getVideosOverview) |
15 | ) | 15 | ) |
16 | 16 | ||