feat: update API endpoints to use production URL and enhance UI components in authenticated routes
This commit is contained in:
@@ -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}`;
|
||||
|
||||
Reference in New Issue
Block a user