diff --git a/frontend/scripts/generate-sitemap.js b/frontend/scripts/generate-sitemap.js index bf6c9fe..774f415 100644 --- a/frontend/scripts/generate-sitemap.js +++ b/frontend/scripts/generate-sitemap.js @@ -20,7 +20,7 @@ const fetchPosts = async tagName => (await axios.get (`${ API_BASE_URL }/posts`, match: 'all', limit: '20' }) } })).data.posts -const fetchTags = async () => (await axios.get (`${ API_BASE_URL }/tags`)).data +const fetchTags = async () => (await axios.get (`${ API_BASE_URL }/tags`)).data.tags const fetchTagNames = async () => (await fetchTags ()).map (tag => tag.name) const fetchWikiPages = async () => (await axios.get (`${ API_BASE_URL }/wiki`)).data