X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/a950096809e19f48ec006651227222d60e4fa86c..c8528155683c9cf4f11ee6d78da8d9b86a3203bf:/src/routes/routes.ts diff --git a/src/routes/routes.ts b/src/routes/routes.ts index 29941b47..34b15e11 100644 --- a/src/routes/routes.ts +++ b/src/routes/routes.ts @@ -15,7 +15,9 @@ export const Routes = { PROCESSES: `/processes/:id(${RESOURCE_UUID_PATTERN})`, FAVORITES: '/favorites', TRASH: '/trash', - PROCESS_LOGS: `/process-logs/:id(${RESOURCE_UUID_PATTERN})` + PROCESS_LOGS: `/process-logs/:id(${RESOURCE_UUID_PATTERN})`, + SHARED_WITH_ME: '/shared-with-me', + WORKFLOWS: '/workflows' }; export const getResourceUrl = (uuid: string) => { @@ -60,3 +62,9 @@ export const matchProcessRoute = (route: string) => export const matchProcessLogRoute = (route: string) => matchPath(route, { path: Routes.PROCESS_LOGS }); + +export const matchSharedWithMeRoute = (route: string) => + matchPath(route, { path: Routes.SHARED_WITH_ME }); + +export const matchWorkflowRoute = (route: string) => + matchPath(route, { path: Routes.WORKFLOWS });