INNER CODE UNIT · JavaScript
getAllowlist
mlevit/aws-auto-cleanup · web/src/js/index.js:444
function getAllowlist() {
app.allowlist = [];
app.showAllowlistLoadingGif = true;
fetch(API_GET_ALLOWLIST, {
headers: {
"x-api-key": API_KEY,
},
})
.then((response) => response.json())
.then((data) => {
let i = 1;
let allowlistRaw = data["response"]["allowlist"];
dayjs.extend(dayjs_plugin_utc);
dayjs.extend(dayjs_plugin_timezone);
app.allowlist = allowlistRaw.map((item) => {
// Parse Resource ID, i.e. split on ":"