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 bb38208 commit 8353326Copy full SHA for 8353326
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/src/assets/imgs`);
+ const response = await fetch(`https://api.github.com/repos/${usernameGitHub}/${repositoryName}/contents/public/images`);
4
if (!response.ok) {
5
throw new Error(`Unsuccessful request: ${response.statusText}`);
6
}
0 commit comments