PMCORE-2560:Update the counters in the sideBar

cr
This commit is contained in:
fabio
2020-12-16 19:00:37 -04:00
parent df40b1c7c6
commit b57d37122e
4 changed files with 41 additions and 3 deletions

View File

@@ -1,6 +1,4 @@
import axios from "axios";
import headerData from "./../mocks/casesHeader.json";
import startedCasesFaker from "./../mocks/startedCasesFaker.js";
import Api from "./Api.js";
export let cases = {

View File

@@ -2,11 +2,26 @@ import axios from 'axios';
export let menu = {
get() {
return axios.get(window.config.SYS_SERVER + '/api/1.0/' + window.config.SYS_WORKSPACE + '/home/menu', {
return axios.get(
window.config.SYS_SERVER +
'/api/1.0/' +
window.config.SYS_WORKSPACE +
'/home/menu', {
headers: {
'Authorization': 'Bearer ' + window.config.SYS_CREDENTIALS.accessToken
}
});
},
getCounters() {
return axios.get(
window.config.SYS_SERVER +
'/api/1.0/' +
window.config.SYS_WORKSPACE +
'/home/tasks/counter', {
headers: {
'Authorization': 'Bearer ' + window.config.SYS_CREDENTIALS.accessToken
}
});
}
};