upd: donasi

Deskripsi:
- api detail donasi

No Issues
This commit is contained in:
amel
2024-12-20 17:30:46 +08:00
parent 32b44fad79
commit 692dd25609
13 changed files with 588 additions and 47 deletions

View File

@@ -13,7 +13,7 @@ export const apiGetAllDonasiSaya = async (path?: string) => {
return await response.json().catch(() => null)
}
export const apiGetOneDonasiById = async (path: string) => {
const response = await fetch(`/api/new/donasi/${path}`)
export const apiGetOneDonasiById = async (path: string, kategori: string) => {
const response = await fetch(`/api/new/donasi/${path}?cat=${kategori}`)
return await response.json().catch(() => null)
}