Add jwennKomanteEpiTeksId to lib/oki-api.js

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2021-06-26 12:16:24 +02:00
parent a8b2cfdb37
commit 4ff88ebb61
+6
View File
@@ -44,3 +44,9 @@ export async function jwennSlugs() {
const response = await axios.get(`${OKI_API}/slugs`)
return response.data
}
export async function jwennKomanteEpiTeksId(teksId) {
const query = `_sort=published_at:DESC&_where[teks]=${teksId}&_where[published_at_null]=false`
const response = await axios.get(`${OKI_API}/komante?${query}`)
return response.data
}