Add jwennKomanteEpiTeksId to lib/oki-api.js
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user