drop articles from sitemap

This commit is contained in:
tmshv committed 2020-03-03 03:05:18 +03:00
1 parent 44973faea3
commit 79a127636c
1 file changed
-10
-10
View File
@@ -30,20 +30,10 @@ async function getPageUrls(frequency = 'daily') {
}))
}
async function getArticleUrls() {
const res = await api.get('/api/articles/urls')
return res.data.items.map(url => ({
changefreq: 'monthly',
url,
}))
}
(async () => {
let urls = await Promise.all([
getMenuUrls(),
getPageUrls(),
getArticleUrls(),
])
urls = urls.reduce((urls, i) => urls.concat(i))