Change getAwtis to jwennMizikEpiSlug
This commit is contained in:
+2
-2
@@ -3,8 +3,8 @@ import axios from 'axios'
|
||||
const OKI_API = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:1337'
|
||||
const AWTIS_POU_CHAK_PAJ = process.env.NEXT_PUBLIC_AWTIS_POU_CHAK_PAJ || 6
|
||||
|
||||
export async function getAwtis() {
|
||||
const response = await axios.get(`${OKI_API}/awtis`)
|
||||
export async function jwennMizikEpiSlug(slug) {
|
||||
const response = await axios.get(`${OKI_API}/mizik?slug=${slug}`)
|
||||
return response.data
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user