Remove input data from axios call

This commit is contained in:
James M. Greene
2022-06-07 14:56:40 -05:00
parent 42f1735373
commit 1775467e63
3 changed files with 5 additions and 9 deletions

6
dist/index.js vendored
View File

@@ -8220,14 +8220,12 @@ const axios = __nccwpck_require__(6545)
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}`
}
}
)

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@@ -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}`
}
}
)