Skip to content

Commit

Permalink
Merge pull request #17 from devicons/amacado/16-api-endpoint
Browse files Browse the repository at this point in the history
replace /image endpoint with /upload
  • Loading branch information
Thomas-Boi authored May 27, 2021
2 parents 68a069a + ce320b0 commit 352cf5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function main() {
function uploadToImgur(img_path, description, clientId) {
const axiosConfig = {
method: "post",
url: "https://api.imgur.com/3/image",
url: "https://api.imgur.com/3/upload",
headers: {
"Authorization": `Client-ID ${clientId}`
},
Expand All @@ -58,4 +58,4 @@ function uploadToImgur(img_path, description, clientId) {
return res.data.link
})
.catch(err => {throw err})
}
}

0 comments on commit 352cf5f

Please sign in to comment.