mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 07:03:08 -04:00
[core](api) reflect backend auth changes
This commit is contained in:
parent
3432604c52
commit
489a12976d
1 changed files with 1 additions and 0 deletions
|
@ -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){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue