feat: update API endpoints to use production URL and enhance UI components in authenticated routes

This commit is contained in:
2025-08-25 15:07:09 -06:00
parent 012a5a58b0
commit 602c5dbb31
5 changed files with 27 additions and 31 deletions

View File

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