diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-12-07 03:54:20 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-12-07 03:54:20 +0100 |
| commit | 914c75e0ceeb3e11ddd55e94bb461c26b0db5b7a (patch) | |
| tree | cec5c933b3beb64d4808cdc6bd8fcd8e4dc55421 /code/app/src/lib/configuration.ts | |
| parent | 1a3c7bab2ad7deae0a778eb84b6d130df1bd9d36 (diff) | |
| download | greatoffice-914c75e0ceeb3e11ddd55e94bb461c26b0db5b7a.tar.xz greatoffice-914c75e0ceeb3e11ddd55e94bb461c26b0db5b7a.zip | |
feat:Small changes
Diffstat (limited to 'code/app/src/lib/configuration.ts')
| -rw-r--r-- | code/app/src/lib/configuration.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 : ""); } |
