INNER CODE UNIT · JavaScript

init

mlevit/aws-auto-cleanup · web/src/js/index.js:535

function init() {
  getAllowlist();
  getExecutionLogList();
  getServices();
}

// Get the API Gateway Base URL from manifest file
fetch("serverless.manifest.json").then(function (response) {
  response.json().then(function (data) {
    let env = Object.keys(data)[0];
    let API_BASE = data[env]["urls"]["apiGatewayBaseURL"];

    API_GET_ALLOWLIST = API_BASE + API_GET_ALLOWLIST;
    API_SERVICES = API_BASE + API_SERVICES;
    API_CRUD_ALLOWLIST = API_BASE + API_CRUD_ALLOWLIST;
    API_EXECLOG = API_BASE + API_EXECLOG;

    for (output of data[env]["outputs"]) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…