Add jwennUser to oki-api

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-02-06 18:41:57 +04:00
parent 5092dfc598
commit 6ae1b63128
+6
View File
@@ -50,3 +50,9 @@ export async function jwennKomanteEpiTeksId(teksId) {
const response = await axios.get(`${OKI_API}/komante?${query}`)
return response.data
}
export async function jwennUser(userId) {
const query = `_where[id]=${userId}&_where[confirmed]=true`
const response = await axios.get(`${OKI_API}/users?${query}`)
return response.data[0]
}