Add awtis slug to sitemap.xml

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-05-11 03:13:26 +04:00
parent b363c95da5
commit fb574b61ed
2 changed files with 21 additions and 3 deletions
+8
View File
@@ -38,6 +38,14 @@ export async function jwennTeks() {
return response.data
}
export async function jwennAwtisSlug() {
const query = '_sort=published_at:DESC&_where[published_at_null]=false'
const response = await axios.get(`${OKI_API}/awtis?${query}`)
const {data} = response
return data.map(({slug}) => slug)
}
export async function jwennDenyeTeks() {
const query = '_sort=published_at:DESC&_limit=6&_where[published_at_null]=false'