]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/bots.ts
Adapt feeds content-type to accept header
[github/Chocobozzz/PeerTube.git] / server / controllers / bots.ts
index f3e778b04b11ce3cf475305a87f39af8ac34fcdb..63280dabbf2e14f2182c4d52ce02f2495e6eb122 100644 (file)
@@ -14,7 +14,7 @@ const botsRouter = express.Router()
 // Special route that add OpenGraph and oEmbed tags
 // Do not use a template engine for a so little thing
 botsRouter.use('/sitemap.xml',
-  asyncMiddleware(cacheRoute(ROUTE_CACHE_LIFETIME.SITEMAP)),
+  asyncMiddleware(cacheRoute()(ROUTE_CACHE_LIFETIME.SITEMAP)),
   asyncMiddleware(getSitemap)
 )