Add jwennDenyeTeks to oki-api

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-05-08 23:47:31 +04:00
parent 7d1cf8ed95
commit 9ea8331ddc
+7
View File
@@ -33,6 +33,13 @@ export async function jwennTeks() {
return response.data
}
export async function jwennDenyeTeks() {
const query = '_sort=published_at:DESC&_limit=6&_where[published_at_null]=false'
const response = await axios.get(`${OKI_API}/teks?${query}`)
return response.data
}
export async function jwennAnTeks(teksId) {
const response = await axios.get(`${OKI_API}/teks/${teksId}`)
return response.data