Add jwennDenyeTeks to oki-api
This commit is contained in:
@@ -33,6 +33,13 @@ export async function jwennTeks() {
|
||||
return response.data
|
||||
}
|
||||
|
||||
export async function jwennDenyeTeks() {
|
||||
const query = '_sort=published_at:DESC&_limit=6&_where[published_at_null]=false'
|
||||
|
||||
const response = await axios.get(`${OKI_API}/teks?${query}`)
|
||||
return response.data
|
||||
}
|
||||
|
||||
export async function jwennAnTeks(teksId) {
|
||||
const response = await axios.get(`${OKI_API}/teks/${teksId}`)
|
||||
return response.data
|
||||
|
||||
Reference in New Issue
Block a user