Skip to content

Commit 7424c71

Browse files
authored
Add authentication token for gallery cards
1 parent f4407c7 commit 7424c71

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/pages/PageOne/DemoCards.jsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ const DemoCards = ({uploadFiles,closeGallery=()=>{}})=>{
1010

1111
useEffect(() => {
1212
// get all the subDirectory url from Github
13-
const owner = 'Lin064';
14-
const repo = 'PL-Profiles';
15-
const path = '';
16-
const branch = 'main';
17-
const githubApiUrl = `https://api.github.com/repos/${owner}/${repo}/contents/${path}?ref=${branch}`;
13+
const owner = 'planimation';
14+
const repo = 'documentation';
15+
const path = 'AnimationProfiles';
16+
const branch = 'master';
17+
const githubApiUrl = `https://api.github.com/repos/${owner}/${repo}/contents/${path}?ref=${branch}`;
1818

1919
axios.get(githubApiUrl,{
2020
headers:{
21-
21+
Authorization: `token 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`
2222
}
2323
})
2424
.then(response => {
@@ -55,4 +55,4 @@ const DemoCards = ({uploadFiles,closeGallery=()=>{}})=>{
5555
</>
5656
)
5757
}
58-
export default DemoCards;
58+
export default DemoCards;

0 commit comments

Comments
 (0)