in application/resources/js/awsfacade.js [150:209]
constructor(config) {
this.servicesConfiguration = null;
this.API_SERVICES = [
{
"Resource": "config",
"Method": "GET",
"URL": config.API_ENDPOINT + "config",
"AuthorizationRequired": false
},
{
"Resource": "session",
"Method": "GET",
"URL": config.API_ENDPOINT + "session",
"AuthorizationRequired": true
},
{
"Resource": "websocket",
"Method": "GET",
"URL": config.API_ENDPOINT + "websocket",
"AuthorizationRequired": true
},
{
"Resource": "scoreboard",
"Method": "GET",
"URL": config.API_ENDPOINT + "scoreboard",
"AuthorizationRequired": true
},
{
"Resource": "updatestatus",
"Method": "POST",
"URL": config.API_ENDPOINT + "updatestatus",
"Headers": [
{ "Name": "Content-Type", "Value": "application/json" }
],
"AuthorizationRequired": true
},
{
"Resource": "allocate",
"Method": "POST",
"URL": config.API_ENDPOINT + "allocate",
"Headers": [
{ "Name": "Content-Type", "Value": "application/json" }
],
"AuthorizationRequired": true
},
{
"Resource": "deallocate",
"Method": "POST",
"URL": config.API_ENDPOINT + "deallocate",
"Headers": [
{ "Name": "Content-Type", "Value": "application/json" }
],
"AuthorizationRequired": true
}
];
if (!config.region) config.region = 'us-east-1';
AWS.config.update({ "region": config.region });
this.cognitoFacade = null;
this.init();
}