mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 06:35:42 +00:00
Merge branch 'dev' of github.com:Tria-plc/edr-platform into importhandover
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
<<<<<<< HEAD
|
||||
export const API_BASE_URL = 'https://edrfreightapi.triaplc.com';
|
||||
//export const API_BASE_URL = 'http://localhost:3001';
|
||||
=======
|
||||
export const API_BASE_URL = import.meta.env.VITE_BASE_API_URL;
|
||||
>>>>>>> 8616f6dcdfa44089be2fd7b6a9867b20e320b305
|
||||
|
||||
/**
|
||||
* URL that streams an uploaded file through the API by its UUID. Routes the
|
||||
@@ -12,4 +16,3 @@ export function fileViewUrl(fileId: string, download = false): string {
|
||||
const base = `${API_BASE_URL}/api/files/${fileId}`;
|
||||
return download ? `${base}?download=1` : base;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user