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 Sep 24, 2023
1 parent 4630b1c commit 88615e0
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 88615e0

Please sign in to comment.