mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-16 01:53:08 -04:00
rename api key variables
This commit is contained in:
parent
3380e1949d
commit
9967194bc8
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ module.exports = {
|
||||||
try{
|
try{
|
||||||
let pride = await superagent.get(`https://labscore.vercel.app/v2/image/pridev2`)
|
let pride = await superagent.get(`https://labscore.vercel.app/v2/image/pridev2`)
|
||||||
.set({
|
.set({
|
||||||
"x-labscore-auth": process.env.labscore_legacy_api_key
|
"x-labscore-auth": process.env.LEGACY_API_KEY
|
||||||
})
|
})
|
||||||
.query({
|
.query({
|
||||||
url: avatar
|
url: avatar
|
||||||
|
|
|
@ -9,7 +9,7 @@ async function request(path, type, headers, args, host) {
|
||||||
if(host) url = host + path
|
if(host) url = host + path
|
||||||
|
|
||||||
// apply default headers
|
// 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["user-agent"]) headers["user-agent"] = "labscore/2.0"
|
||||||
if(!headers["x-labscore-client"]) headers["x-labscore-client"] = "labscore/2.0"
|
if(!headers["x-labscore-client"]) headers["x-labscore-client"] = "labscore/2.0"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue