Sk4467's picture
Upload 108 files
1e83c8a verified
raw
history blame contribute delete
175 Bytes
export const API_BASE = import.meta.env.VITE_API_BASE || "";
export function apiUrl(path) {
if (!path.startsWith("/")) path = "/" + path;
return `${API_BASE}${path}`;
}