mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 23:23: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{
|
||||
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
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue