We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8353326 commit c95cf72Copy full SHA for c95cf72
src/hook/api/fetchGitHubBanner.ts
@@ -1,6 +1,6 @@
1
export async function fetchGitHubBanner(usernameGitHub: string, repositoryName: string) {
2
try {
3
- const response = await fetch(`https://api.github.com/repos/${usernameGitHub}/${repositoryName}/contents/public/images`);
+ const response = await fetch(`https://api.github.com/repos/${usernameGitHub}/${repositoryName}/contents/public`);
4
if (!response.ok) {
5
throw new Error(`Unsuccessful request: ${response.statusText}`);
6
}
0 commit comments