Add justfile and essential recipes. Add unit tests. Add linter and fix linter errors.
This commit is contained in:
4
ui/src/api/url.ts
Normal file
4
ui/src/api/url.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
const API_BASE_URL = process.env.API_BASE_URL ?? "http://localhost:5013";
|
||||
|
||||
export const buildApiUrl = (path: string) =>
|
||||
`${API_BASE_URL.replace(/\/+$/, "")}/${path.replace(/^\/+/, "")}`;
|
||||
Reference in New Issue
Block a user