refs #14364 Merge branch 'origin/14364-searchbar-arrow-navigation'
[arvados-workbench2.git] / src / routes / routes.ts
index 4e8cf366ac3c0b4d7060f3b107fb48eec6c0ac9f..e5f3493539e3cbaae317e95fc1b38d3f89cb032f 100644 (file)
@@ -17,7 +17,9 @@ export const Routes = {
     TRASH: '/trash',
     PROCESS_LOGS: `/process-logs/:id(${RESOURCE_UUID_PATTERN})`,
     SHARED_WITH_ME: '/shared-with-me',
-    RUN_PROCESS: '/run-process'
+    RUN_PROCESS: '/run-process',
+    WORKFLOWS: '/workflows',
+    SEARCH_RESULTS: '/search-results'
 };
 
 export const getResourceUrl = (uuid: string) => {
@@ -67,4 +69,10 @@ export const matchSharedWithMeRoute = (route: string) =>
     matchPath(route, { path: Routes.SHARED_WITH_ME });
 
 export const matchRunProcessRoute = (route: string) =>
-    matchPath(route, { path: Routes.RUN_PROCESS });
\ No newline at end of file
+    matchPath(route, { path: Routes.RUN_PROCESS });
+    
+export const matchWorkflowRoute = (route: string) =>
+    matchPath<ResourceRouteParams>(route, { path: Routes.WORKFLOWS });
+
+export const matchSearchResultsRoute = (route: string) =>
+    matchPath<ResourceRouteParams>(route, { path: Routes.SEARCH_RESULTS });