Adapt feeds content-type to accept header

This commit is contained in:
Rigel Kent 2020-01-09 16:51:51 +01:00 committed by Chocobozzz
parent 9270ccf6dc
commit f2f0eda543
8 changed files with 67 additions and 24 deletions

View 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)
)