aboutsummaryrefslogtreecommitdiff
path: root/fe/src/utils.ts
diff options
context:
space:
mode:
authorZach Berwaldt <zberwaldt@tutamail.com>2024-03-18 21:27:24 -0400
committerZach Berwaldt <zberwaldt@tutamail.com>2024-03-18 21:27:24 -0400
commiteb51bdbfef8c2aacf0fdfde279a40de7f74c8d86 (patch)
treef8fdfb4e28fa271eda3027d84843e4b476831cdd /fe/src/utils.ts
parent5ddcd1cf663cc732819cfcb66f2ff6b1bbeb0d47 (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}