rename api key variables

This commit is contained in:
derpystuff 2023-08-07 00:04:16 +02:00
parent 3380e1949d
commit 9967194bc8
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ module.exports = {
try{
let pride = await superagent.get(`https://labscore.vercel.app/v2/image/pridev2`)
.set({
"x-labscore-auth": process.env.labscore_legacy_api_key
"x-labscore-auth": process.env.LEGACY_API_KEY
})
.query({
url: avatar

View file

@ -9,7 +9,7 @@ async function request(path, type, headers, args, host) {
if(host) url = host + path
// apply default headers
if(!headers["Authorization"]) headers["Authorization"] = process.env.api_prod
if(!headers["Authorization"]) headers["Authorization"] = process.env.API_KEY
if(!headers["user-agent"]) headers["user-agent"] = "labscore/2.0"
if(!headers["x-labscore-client"]) headers["x-labscore-client"] = "labscore/2.0"