upd : edit donasi

Deskripsi:
- ubah api master pada edit donasi
- get one edit donasi

No Issues
This commit is contained in:
amel
2024-12-19 15:40:16 +08:00
parent b1d7a565e7
commit 32b44fad79
6 changed files with 408 additions and 7 deletions

View File

@@ -11,4 +11,9 @@ export const apiGetMasterDonasi = async (path?: string) => {
export const apiGetAllDonasiSaya = async (path?: string) => {
const response = await fetch(`/api/new/donasi/invoice${(path) ? path : ''}`)
return await response.json().catch(() => null)
}
export const apiGetOneDonasiById = async (path: string) => {
const response = await fetch(`/api/new/donasi/${path}`)
return await response.json().catch(() => null)
}