From 914c75e0ceeb3e11ddd55e94bb461c26b0db5b7a Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Wed, 7 Dec 2022 11:54:20 +0900 Subject: feat:Small changes --- code/app/src/lib/configuration.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code/app/src/lib/configuration.ts') diff --git a/code/app/src/lib/configuration.ts b/code/app/src/lib/configuration.ts index 541be35..8debef6 100644 --- a/code/app/src/lib/configuration.ts +++ b/code/app/src/lib/configuration.ts @@ -4,7 +4,7 @@ export const API_ADDRESS = "https://api." + BASE_DOMAIN; export const DEV_API_ADDRESS = "http://localhost:5000"; export const SECONDS_BETWEEN_SESSION_CHECK = 600; -export function api_base(path: string = ""): string { +export function api_base(path: string = "", useDefaultVersion = false): string { return (is_development() ? DEV_API_ADDRESS : API_ADDRESS) + (path !== "" ? "/" + path : ""); } -- cgit v1.3