mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
basecamp
This commit is contained in:
parent
ed8fa26f2c
commit
416b89c6ce
2 changed files with 25 additions and 0 deletions
|
@ -23,4 +23,19 @@ module.exports.maintower = async function (packages, type){
|
|||
console.log(e)
|
||||
throw "Maintower request failed."
|
||||
}
|
||||
}
|
||||
|
||||
module.exports.basecamp = async function (log){
|
||||
try{
|
||||
let res = await superagent.post(MAINTOWER_BASE_URL + 'basecamp')
|
||||
.set({
|
||||
"Authorization": process.env.api_prod,
|
||||
"x-labscore-client": "labscore/2.0"
|
||||
})
|
||||
.send({log})
|
||||
return;
|
||||
}catch(e){
|
||||
console.log(e)
|
||||
throw "Basecamp request failed."
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue