Skip to content

Commit

Permalink
customize leethub
Browse files Browse the repository at this point in the history
  • Loading branch information
guswns3371 authored Mar 25, 2023
1 parent e56eb14 commit dde152c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/leetcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ const upload = (
cb = undefined,
) => {
// To validate user, load user object from GitHub.
const URL = `https://api.github.com/repos/${hook}/contents/${directory}/${filename}`;

const URL = `https://api.github.com/repos/${hook}/contents/LeetCode/${difficulty}/${directory}/${filename}`;
/* Define Payload */
let data = {
message: msg,
Expand Down Expand Up @@ -137,7 +136,7 @@ const update = (
prepend,
cb = undefined,
) => {
const URL = `https://api.github.com/repos/${hook}/contents/${directory}/README.md`;
const URL = `https://api.github.com/repos/${hook}/contents/LeetCode/${difficulty}/${directory}/README.md`;

/* Read from existing file on GitHub */
const xhr = new XMLHttpRequest();
Expand Down

0 comments on commit dde152c

Please sign in to comment.