Skip to content

Instantly share code, notes, and snippets.

@narennaik
Last active June 28, 2021 18:26
Show Gist options
  • Save narennaik/6c7978f4836e827b5ec752ef4fb25eb8 to your computer and use it in GitHub Desktop.
Save narennaik/6c7978f4836e827b5ec752ef4fb25eb8 to your computer and use it in GitHub Desktop.
With Comments
// Construct URL list
// Adding https protocol since the backend service doesn't accept http
// TODO: (temporary) Adding callback=true because server side redirection needs this parameter
const urlList = domainList.map((item) => {
const domain = item.details.name;
const httpsUrl = `https://${domain}?callback=true`;
return httpsUrl;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment