Add awtis slug to sitemap.xml
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user