Add jwennTeksEpiUserId to oki-api

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2021-05-24 02:58:04 +02:00
parent 4fd8ddeadd
commit 347baee2f8
+7
View File
@@ -33,6 +33,13 @@ export async function jwennTeks() {
return response.data
}
export async function jwennTeksEpiUserId(userId) {
const query = `_sort=tit:ASC&_where[user.id]=${userId}`
const response = await axios.get(`${OKI_API}/teks?${query}`)
return response.data
}
export async function jwennSlugs() {
const response = await axios.get(`${OKI_API}/slugs`)
return response.data