Skip to content

Commit

Permalink
Merge pull request #40 from DIGOARTHUR/21-improvement-usegithubautoma…
Browse files Browse the repository at this point in the history
…tedrepos-change-banner-path

improvement : change banner url path
  • Loading branch information
DIGOARTHUR authored Dec 31, 2024
2 parents bb38208 + 7fbcbda commit 5a763c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hook/api/fetchGitHubBanner.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export async function fetchGitHubBanner(usernameGitHub: string, repositoryName: string) {
try {
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`);
if (!response.ok) {
throw new Error(`Unsuccessful request: ${response.statusText}`);
}
Expand Down

0 comments on commit 5a763c2

Please sign in to comment.