mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
39cef4c43f
Reverts #1640 so that the homepage does not change during the patch release. This commit will be re-applied after the release is cut.
50 lines
1.8 KiB
TypeScript
50 lines
1.8 KiB
TypeScript
import { IHost } from "../interfaces/host";
|
|
import { IPack } from "../interfaces/pack";
|
|
import { IQuery } from "../interfaces/query";
|
|
import URL_PREFIX from "./url_prefix";
|
|
|
|
export default {
|
|
ADMIN_USERS: `${URL_PREFIX}/settings/users`,
|
|
ADMIN_SETTINGS: `${URL_PREFIX}/settings/organization`,
|
|
ADMIN_TEAMS: `${URL_PREFIX}/settings/teams`,
|
|
ALL_PACKS: `${URL_PREFIX}/packs/all`,
|
|
EDIT_PACK: (pack: IPack): string => {
|
|
return `${URL_PREFIX}/packs/${pack.id}/edit`;
|
|
},
|
|
PACK: (pack: IPack): string => {
|
|
return `${URL_PREFIX}/packs/${pack.id}`;
|
|
},
|
|
EDIT_QUERY: (query: IQuery): string => {
|
|
return `${URL_PREFIX}/queries/${query.id}`;
|
|
},
|
|
FORGOT_PASSWORD: `${URL_PREFIX}/login/forgot`,
|
|
HOME: `${URL_PREFIX}/`,
|
|
API_ONLY_USER: `${URL_PREFIX}/apionlyuser`,
|
|
FLEET_403: `${URL_PREFIX}/403`,
|
|
FLEET_500: `${URL_PREFIX}/500`,
|
|
LOGIN: `${URL_PREFIX}/login`,
|
|
HOMEPAGE: `${URL_PREFIX}/home/dashboard`,
|
|
LOGOUT: `${URL_PREFIX}/logout`,
|
|
MANAGE_HOSTS: `${URL_PREFIX}/hosts/manage`,
|
|
HOST_DETAILS: (host: IHost): string => {
|
|
return `${URL_PREFIX}/hosts/${host.id}`;
|
|
},
|
|
TEAM_DETAILS_MEMBERS: (teamId: number): string => {
|
|
return `${URL_PREFIX}/settings/teams/${teamId}/members`;
|
|
},
|
|
TEAM_DETAILS_OPTIONS: (teamId: number): string => {
|
|
return `${URL_PREFIX}/settings/teams/${teamId}/options`;
|
|
},
|
|
MANAGE_PACKS: `${URL_PREFIX}/packs/manage`,
|
|
NEW_PACK: `${URL_PREFIX}/packs/new`,
|
|
MANAGE_QUERIES: `${URL_PREFIX}/queries/manage`,
|
|
MANAGE_SCHEDULE: `${URL_PREFIX}/schedule/manage`,
|
|
MANAGE_TEAM_SCHEDULE: (teamId: number): string => {
|
|
return `${URL_PREFIX}/schedule/manage/teams/${teamId}`;
|
|
},
|
|
NEW_QUERY: `${URL_PREFIX}/queries/new`,
|
|
RESET_PASSWORD: `${URL_PREFIX}/login/reset`,
|
|
SETUP: `${URL_PREFIX}/setup`,
|
|
USER_SETTINGS: `${URL_PREFIX}/profile`,
|
|
};
|