14 lines
324 B
TypeScript
14 lines
324 B
TypeScript
|
import { getRootPath } from "../src/utils/getRootPath";
|
||
|
|
||
|
export function getBaseUrl(): string {
|
||
|
return process.env.KEYCLOAK_SERVER ?? "http://localhost:8080";
|
||
|
}
|
||
|
|
||
|
export function getAccountUrl() {
|
||
|
return getBaseUrl() + getRootPath();
|
||
|
}
|
||
|
|
||
|
export function getAdminUrl() {
|
||
|
return getBaseUrl() + "/admin/master/console/";
|
||
|
}
|