Created
January 30, 2024 17:28
-
-
Save keevie/678444e746c032ced8b29f7a1ded7dc1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getUrl = async(url) => { | |
const resp = await fetch(url, { | |
headers: { | |
'Accept': 'application/json', | |
'Content-Type': 'application/json', | |
}, | |
method: 'GET', | |
}); | |
const res = resp.json(); | |
return res | |
} | |
const main = async () => { | |
const res = await getUrl('https://warbler.frameable.com/api/healthcheck') | |
console.log( res) | |
} | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment