Adapt feeds content-type to accept header
This commit is contained in:
parent
9270ccf6dc
commit
f2f0eda543
8 changed files with 67 additions and 24 deletions
|
@ -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)
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue