[core](api) reflect backend auth changes

This commit is contained in:
derpystuff 2022-05-29 17:01:24 +02:00
parent 3432604c52
commit 489a12976d

View file

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