X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/6e92c390c1302fe8d680ebc03c8d048cf7f11fdf..59329caeae17903b97b90b167df5a8122a0c9d95:/src/routes/routes.ts diff --git a/src/routes/routes.ts b/src/routes/routes.ts index 05f6663f..661a065e 100644 --- a/src/routes/routes.ts +++ b/src/routes/routes.ts @@ -30,6 +30,8 @@ export const Routes = { COMPUTE_NODES: `/nodes`, USERS: '/users', API_CLIENT_AUTHORIZATIONS: `/api_client_authorizations`, + GROUPS: '/groups', + GROUP_DETAILS: `/group/:id(${RESOURCE_UUID_PATTERN})`, LINKS: '/links' }; @@ -51,6 +53,8 @@ export const getProcessUrl = (uuid: string) => `/processes/${uuid}`; export const getProcessLogUrl = (uuid: string) => `/process-logs/${uuid}`; +export const getGroupUrl = (uuid: string) => `/group/${uuid}`; + export interface ResourceRouteParams { id: string; } @@ -118,5 +122,11 @@ export const matchComputeNodesRoute = (route: string) => export const matchApiClientAuthorizationsRoute = (route: string) => matchPath(route, { path: Routes.API_CLIENT_AUTHORIZATIONS }); +export const matchGroupsRoute = (route: string) => + matchPath(route, { path: Routes.GROUPS }); + +export const matchGroupDetailsRoute = (route: string) => + matchPath(route, { path: Routes.GROUP_DETAILS }); + export const matchLinksRoute = (route: string) => - matchPath(route, { path: Routes.LINKS }); \ No newline at end of file + matchPath(route, { path: Routes.LINKS });