Skip to content

Commit

Permalink
Remove input data from axios call
Browse files Browse the repository at this point in the history
  • Loading branch information
James M. Greene authored and James M. Greene committed Jun 7, 2022
1 parent 42f1735 commit 1775467
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
6 changes: 2 additions & 4 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ const axios = require('axios')
async function getPageBaseUrl() {
try {
const pagesEndpoint = `https://api.github.com/repos/${process.env.GITHUB_REPOSITORY}/pages`
const response = await axios.get(
const response = await axios.get(
pagesEndpoint,
{},
{
headers: {
Accept: 'application/vnd.github.v3+json',
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
'Content-type': 'application/json'
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`
}
}
)
Expand Down

0 comments on commit 1775467

Please sign in to comment.