aboutsummaryrefslogtreecommitdiff
path: root/fe/src/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'fe/src/utils.ts')
-rw-r--r--fe/src/utils.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/fe/src/utils.ts b/fe/src/utils.ts
index e78556c..9fddf41 100644
--- a/fe/src/utils.ts
+++ b/fe/src/utils.ts
@@ -7,3 +7,8 @@ export function processFormInput(form: HTMLFormElement) {
7 } 7 }
8 return data; 8 return data;
9} 9}
10
11export function apiURL (path: string): string {
12 const baseUrl = import.meta.env?.VITE_API_BASE_URL ?? "http://localhost:8080/api/v1";
13 return `${baseUrl}${path}`
14}