PMCORE-2547:Use the Service for HEADER COUNTER

correction
This commit is contained in:
fabio
2020-12-14 21:32:35 -04:00
parent 6209114a9b
commit c35fc424f3
3 changed files with 14 additions and 11 deletions

View File

@@ -172,10 +172,13 @@ export let cases = {
export let casesHeader = {
get() {
return new Promise((resolutionFunc, rejectionFunc) => {
resolutionFunc({
data: headerData
});
return axios.get(window.config.SYS_SERVER +
'/api/1.0/' +
window.config.SYS_WORKSPACE +
'/home/counters', {
headers: {
'Authorization': 'Bearer ' + window.config.SYS_CREDENTIALS.accessToken
}
});
}
};
};