2024-06-12 09:55:14 +00:00
|
|
|
import { generatePath } from "react-router-dom";
|
2024-03-04 12:38:28 +00:00
|
|
|
|
2024-06-12 09:55:14 +00:00
|
|
|
import { DEFAULT_REALM, ROOT_PATH, SERVER_URL } from "./constants";
|
2024-03-07 11:39:26 +00:00
|
|
|
|
2024-03-04 12:38:28 +00:00
|
|
|
export function getAccountUrl() {
|
2024-06-12 09:55:14 +00:00
|
|
|
return SERVER_URL + getRootPath();
|
2024-03-04 12:38:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export function getAdminUrl() {
|
2024-06-12 09:55:14 +00:00
|
|
|
return SERVER_URL + "/admin/master/console/";
|
2024-03-04 12:38:28 +00:00
|
|
|
}
|
2024-06-12 09:55:14 +00:00
|
|
|
|
|
|
|
export const getRootPath = (realm = DEFAULT_REALM) =>
|
|
|
|
generatePath(ROOT_PATH, { realm });
|