Operations Module moved to old repos

This commit is contained in:
Luis Fernando Molina committed 2020-11-20 19:46:12 +01:00
1 parent 765659d4a2
commit 9e00cd2468
88 files changed
-84

No files matched your search

@@ -0,0 +1,40 @@
import logger from '../config/logger'
import axios from 'axios'
const ecosystemQuery = async (authorization) => {
logger.debug('ecosystemQuery -> Entering function')
let response = await axios({
url: process.env.GATEWAY_ENDPOINT,
method: 'post',
data: {
query: `
query {
web_GetEcosystem {
devTeams {
codeName
displayName
host {
url
storage
container
accessKey
}
}
}
}
`
},
headers: {
authorization: authorization
}
})
if (response.data.errors) {
throw response.data.errors
}
return response.data.data.web_GetEcosystem
}
export default ecosystemQuery