feat: implement DetailDialog component for PDF viewing and downloading; refactor API calls to use environment variables

This commit is contained in:
2025-09-04 07:38:58 -06:00
parent 1808ce6f81
commit 2367baa538
10 changed files with 195 additions and 80 deletions

View File

@@ -1,7 +1,7 @@
// api.ts
const API_BASE =
(import.meta.env.VITE_API_BASE?.replace(/\/$/, "")) ||
"https://genesis-engine.apps.lci.ulsa.mx"; // 👈 tu Bun.serve real
`${import.meta.env.VITE_BACK_ORIGIN}`; // 👈 tu Bun.serve real
export async function postAPI<T=any>(path: string, body: any): Promise<T> {
const url = `${API_BASE}${path}`;