aboutsummaryrefslogtreecommitdiff
path: root/fe/src/utils.ts
diff options
context:
space:
mode:
authorZach Berwaldt <zberwaldt@tutamail.com>2024-03-18 21:27:24 -0400
committerzberwaldt <17715430+zberwaldt@users.noreply.github.com>2024-03-18 21:30:13 -0400
commit53b74ec6122c94853f9d43ab2ac1f69efab0886d (patch)
tree02b6d887d5d0ba5d887ef0334f9dba07d3814292 /fe/src/utils.ts
parente5fbe360d355557b978973f62eed06e01e85bb71 (diff)
clean up, add better error handling
Diffstat (limited to 'fe/src/utils.ts')
-rw-r--r--fe/src/utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/fe/src/utils.ts b/fe/src/utils.ts
index 9fddf41..41c733d 100644
--- a/fe/src/utils.ts
+++ b/fe/src/utils.ts
@@ -10,5 +10,5 @@ export function processFormInput(form: HTMLFormElement) {
10 10
11export function apiURL (path: string): string { 11export function apiURL (path: string): string {
12 const baseUrl = import.meta.env?.VITE_API_BASE_URL ?? "http://localhost:8080/api/v1"; 12 const baseUrl = import.meta.env?.VITE_API_BASE_URL ?? "http://localhost:8080/api/v1";
13 return `${baseUrl}${path}` 13 return `${baseUrl}/${path}`
14} 14}