Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
89e22861af | ||
|
|
3d93b6ddb8 | ||
|
|
418fc1fad4 | ||
|
|
7f0d95b870 | ||
|
|
a8736826bf |
Generated
+3
-3
@@ -12874,9 +12874,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"websocket-extensions": {
|
"websocket-extensions": {
|
||||||
"version": "0.1.3",
|
"version": "0.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz",
|
||||||
"integrity": "sha512-nqHUnMXmBzT0w570r2JpJxfiSD1IzoI+HGVdd3aZ0yNi3ngvQ4jv1dtHt5VGxfI2yj5yqImPhOK4vmIh2xMbGg==",
|
"integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"which": {
|
"which": {
|
||||||
|
|||||||
@@ -78,7 +78,9 @@ routes.set('/urls', async (req, res) => {
|
|||||||
).join("\n")
|
).join("\n")
|
||||||
const xml = `<?xml version="1.0" encoding="UTF-8"?>\r<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
const xml = `<?xml version="1.0" encoding="UTF-8"?>\r<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
${urls}\n\r</urlset>`
|
${urls}\n\r</urlset>`
|
||||||
res.send(xml)
|
|
||||||
|
res.header('Content-Type', 'application/xml')
|
||||||
|
res.status(200).send(xml)
|
||||||
})
|
})
|
||||||
|
|
||||||
module.exports = routes
|
module.exports = routes
|
||||||
|
|||||||
Reference in New Issue
Block a user