fix event

deskripsi:
- fix database event sponsor & event transaksi
This commit is contained in:
2025-01-29 23:43:14 +08:00
parent 93874478ac
commit abfa16339f
15 changed files with 377 additions and 127 deletions

View File

@@ -0,0 +1,19 @@
export { apiGetMasterBank };
const apiGetMasterBank = async () => {
const { token } = await fetch("/api/get-cookie").then((res) => res.json());
if (!token) return await token.json().catch(() => null);
const respone = await fetch(`/api/master/bank`, {
headers: {
"Content-Type": "application/json",
Accept: "application/json",
"Access-Control-Allow-Origin": "*",
Authorization: `Bearer ${token}`,
},
});
return await respone.json().catch(() => null);
};