Add jwennAnTeks in oki-api

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-03-25 00:04:52 +04:00
parent 3d74237647
commit 92ac4d90db
+5
View File
@@ -33,6 +33,11 @@ export async function jwennTeks() {
return response.data
}
export async function jwennAnTeks(teksId) {
const response = await axios.get(`${OKI_API}/teks/${teksId}`)
return response.data
}
export async function jwennTeksEpiUserId(userId) {
const query = `_sort=tit:ASC&_where[user.id]=${userId}&_publicationState=preview&published_at_null=true`