Skip to content

Commit

Permalink
feat(@galactiks/explorer): add get page by url repository
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelgautier committed Oct 25, 2023
1 parent ae7aa5c commit 27d93b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/explorer/src/core/content/repositories/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export const getPageByIdentifier = async (
filters?: RepositoryFilters
) => documentByIdentifierSelector(await getPages(filters))(identifier);

export const getPageByURL = async (url: string) => (await getPages()).find(_p => _p.url === url)

export const getTagPageByKeyword = async (
keyword: string,
filters?: RepositoryFilters
Expand Down

0 comments on commit 27d93b3

Please sign in to comment.