API Detail Publish Event Progresss

This commit is contained in:
2025-02-14 17:46:10 +08:00
parent 54314ee506
commit 83ee4e257b
5 changed files with 386 additions and 177 deletions

View File

@@ -1,4 +1,4 @@
export { apiGetMasterBank, apiGetMasterBidangBisnis };
export { apiGetMasterBank, apiGetMasterBidangBisnis, apiGetMasterStatusTransaksi };
const apiGetMasterBank = async () => {
const { token } = await fetch("/api/get-cookie").then((res) => res.json());
@@ -31,3 +31,20 @@ const apiGetMasterBidangBisnis = async () => {
return await respone.json().catch(() => null);
};
const apiGetMasterStatusTransaksi = async () => {
const { token } = await fetch("/api/get-cookie").then((res) => res.json());
if (!token) return await token.json().catch(() => null);
const response = await fetch(`/api/master/status_transaksi`, {
method: "GET",
headers: {
"Content-Type": "application/json",
Accept: "application/json",
"Access-Control-Allow-Origin": "*",
Authorization: `Bearer ${token}`,
}
})
return await response.json().catch(() => null);
}