From 53b74ec6122c94853f9d43ab2ac1f69efab0886d Mon Sep 17 00:00:00 2001 From: Zach Berwaldt Date: Mon, 18 Mar 2024 21:27:24 -0400 Subject: clean up, add better error handling --- fe/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fe/src/utils.ts') 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) { export function apiURL (path: string): string { const baseUrl = import.meta.env?.VITE_API_BASE_URL ?? "http://localhost:8080/api/v1"; - return `${baseUrl}${path}` + return `${baseUrl}/${path}` } -- cgit v1.1