Merge branch 'beta' into 'master'

master c1.1.0-s1.3.0
Raymonzut 4 years ago
commit 89e22861af
No known key found for this signature in database
GPG Key ID: 1E9BCC39EDD1DD53
  1. 4
      server/routes/api/posts.js

@ -78,7 +78,9 @@ routes.set('/urls', async (req, res) => {
).join("\n")
const xml = `<?xml version="1.0" encoding="UTF-8"?>\r<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
${urls}\n\r</urlset>`
res.send(xml)
res.header('Content-Type', 'application/xml')
res.status(200).send(xml)
})
module.exports = routes

Loading…
Cancel
Save