fix ( upload & api )

deksripsi:
- fix upload image pada berita investasi
- fix api berita investasi
This commit is contained in:
2025-01-16 12:28:39 +08:00
parent cb0691c7f2
commit cdc8ff6d18
17 changed files with 502 additions and 241 deletions

View File

@@ -10,7 +10,7 @@ export async function funDeteleteFileById({
try {
const tokenResponse = await fetch("/api/get-cookie");
if (!tokenResponse.ok) {
throw new Error("Failed to get token");
return { success: false, message: "Token not found" };
}
const { token } = await tokenResponse.json();