X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ac0824da1999359c43df8ef0eba924494a666fe7..949cc1476c08322eb97a0ff809bcff036cee9a79:/src/routes/routes.ts diff --git a/src/routes/routes.ts b/src/routes/routes.ts index b1da949652..3fd6670d88 100644 --- a/src/routes/routes.ts +++ b/src/routes/routes.ts @@ -33,7 +33,8 @@ export const Routes = { API_CLIENT_AUTHORIZATIONS: `/api_client_authorizations`, GROUPS: '/groups', GROUP_DETAILS: `/group/:id(${RESOURCE_UUID_PATTERN})`, - LINKS: '/links' + LINKS: '/links', + PUBLIC_FAVORITES: '/public-favorites' }; export const getResourceUrl = (uuid: string) => { @@ -131,6 +132,9 @@ export const matchGroupsRoute = (route: string) => export const matchGroupDetailsRoute = (route: string) => matchPath(route, { path: Routes.GROUP_DETAILS }); - + export const matchLinksRoute = (route: string) => matchPath(route, { path: Routes.LINKS }); + +export const matchPublicFavorites = (route: string) => + matchPath(route, { path: Routes.PUBLIC_FAVORITES });