Refactor code structure for improved readability and maintainability

This commit is contained in:
nati14575
2026-08-29 12:56:47 +03:00
parent b8dc7274e6
commit a5c875f8f8
7 changed files with 988 additions and 1571 deletions

View File

@@ -10,7 +10,7 @@ import { resolveSessionContext } from "../session";
export const BASE_API_URL =
(import.meta as { env?: Record<string, string> }).env?.[
"VITE_BASE_API_URL"
]?.trim() || "http://localhost:3001/api";
]?.trim() || "http://localhost:3000/api";
let _onTokenExpired: (() => Promise<string>) | null = null;
let _onAuthFailure: (() => void) | null = null;