Skip to content
Permalink
50cea396a8
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
14 lines (14 sloc) 456 Bytes
function getEmployee() {
fetch('https://apiinstance.azure-api.net/Midtermfunctionapp?name=Grace')
.then(response => {
console.log(response);
if(response.status === 200) {
alert("The request has been approved.");
}
fetch('https://apiinstance.azure-api.net/Midtermfunctionapp')
.then((response) => response.text())
.then(data => {
console.log(data);
alert(data);
});
})