diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-22 11:15:17 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-22 11:48:24 +0200 |
commit | 20bafcb61bee2a9a10a500908850c9a7d5e3c8c5 (patch) | |
tree | 18d0e8eb693b0fce88b21b282ea6f28836763fe6 /server/controllers/bots.ts | |
parent | 13e13377918b65c30b9334920fef4b43e70b964e (diff) | |
download | PeerTube-20bafcb61bee2a9a10a500908850c9a7d5e3c8c5.tar.gz PeerTube-20bafcb61bee2a9a10a500908850c9a7d5e3c8c5.tar.zst PeerTube-20bafcb61bee2a9a10a500908850c9a7d5e3c8c5.zip |
Move apicache in peertube
Allow us to upgrade to node 16
Diffstat (limited to 'server/controllers/bots.ts')
-rw-r--r-- | server/controllers/bots.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/bots.ts b/server/controllers/bots.ts index 9e92063d4..93aa0cf30 100644 --- a/server/controllers/bots.ts +++ b/server/controllers/bots.ts | |||
@@ -5,7 +5,7 @@ import { SitemapStream, streamToPromise } from 'sitemap' | |||
5 | import { VideoModel } from '../models/video/video' | 5 | import { VideoModel } from '../models/video/video' |
6 | import { VideoChannelModel } from '../models/video/video-channel' | 6 | import { VideoChannelModel } from '../models/video/video-channel' |
7 | import { AccountModel } from '../models/account/account' | 7 | import { AccountModel } from '../models/account/account' |
8 | import { cacheRoute } from '../middlewares/cache' | 8 | import { cacheRoute } from '../middlewares/cache/cache' |
9 | import { buildNSFWFilter } from '../helpers/express-utils' | 9 | import { buildNSFWFilter } from '../helpers/express-utils' |
10 | import { truncate } from 'lodash' | 10 | import { truncate } from 'lodash' |
11 | 11 | ||
@@ -14,7 +14,7 @@ const botsRouter = express.Router() | |||
14 | // Special route that add OpenGraph and oEmbed tags | 14 | // Special route that add OpenGraph and oEmbed tags |
15 | // Do not use a template engine for a so little thing | 15 | // Do not use a template engine for a so little thing |
16 | botsRouter.use('/sitemap.xml', | 16 | botsRouter.use('/sitemap.xml', |
17 | asyncMiddleware(cacheRoute()(ROUTE_CACHE_LIFETIME.SITEMAP)), | 17 | cacheRoute(ROUTE_CACHE_LIFETIME.SITEMAP), |
18 | asyncMiddleware(getSitemap) | 18 | asyncMiddleware(getSitemap) |
19 | ) | 19 | ) |
20 | 20 | ||