Prettier run

This commit is contained in:
bourquecharles
2021-07-05 08:53:48 -04:00
parent 4c96158f11
commit d9a8a02cd7
24 changed files with 143 additions and 52 deletions

View File

@@ -89,16 +89,18 @@ const Login = () => {
.then((response) => {
sessionStorage.setItem('access_token', response.data.access_token);
token = response.data.access_token;
return axiosInstance.get(`${finalUCentralSecUrl}/api/v1/systemEndpoints`, { headers: {
Accept: 'application/json',
Authorization: `Bearer ${response.data.access_token}`,
}});
return axiosInstance.get(`${finalUCentralSecUrl}/api/v1/systemEndpoints`, {
headers: {
Accept: 'application/json',
Authorization: `Bearer ${response.data.access_token}`,
},
});
})
.then ((response) => {
.then((response) => {
const endpoints = {
ucentralsec: finalUCentralSecUrl
ucentralsec: finalUCentralSecUrl,
};
for (const endpoint of response.data.endpoints){
for (const endpoint of response.data.endpoints) {
endpoints[endpoint.type] = endpoint.uri;
}
sessionStorage.setItem('gateway_endpoints', JSON.stringify(endpoints));