diff options
author | Zach Berwaldt <zberwaldt@tutamail.com> | 2024-03-15 22:00:10 -0400 |
---|---|---|
committer | Zach Berwaldt <zberwaldt@tutamail.com> | 2024-03-15 22:00:10 -0400 |
commit | fd1332a3df191577e91c6d846a8b5db1747099fd (patch) | |
tree | b3f045cd06d6622e23441b442e8f3861050ed444 /fe/src/utils.ts | |
parent | cc49361bcbf689510035e7bbdcce9d8467a36282 (diff) |
cleanup
Diffstat (limited to 'fe/src/utils.ts')
-rw-r--r-- | fe/src/utils.ts | 5 |
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 | |||
11 | export 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 | } | ||