From b8eb008dd5927fb736e56699637f5f8549965eae Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 6 Dec 2023 18:20:54 +0100 Subject: refactor(hooks): replace useGithubApi with useGithubRepoMeta * use GraphQL API instead of REST (the inconvenient however is that we now need an authorization token...) * move fetcher in services * add tests * mock response using MSW --- src/services/github/index.ts | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/services/github/index.ts (limited to 'src/services/github/index.ts') diff --git a/src/services/github/index.ts b/src/services/github/index.ts new file mode 100644 index 0000000..44b0cbf --- /dev/null +++ b/src/services/github/index.ts @@ -0,0 +1 @@ +export * from './fetch-github-repo-meta'; -- cgit v1.2.3