-
-
Save tinder-dyakobian/5c97eb3ac116a5efb2f8a4e7ec5ca62a to your computer and use it in GitHub Desktop.
This file contains 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 req = fetch(`${ENDPOINT}/permissions`, { | |
method: 'POST', | |
mode: 'cors', | |
headers: { | |
Accept: 'application/json', | |
'Content-Type': 'application/json' | |
}, | |
body: JSON.stringify(permission) | |
}); | |
req.then((data) => { | |
console.log(`${FILE_ID}: create permission request resolved successfully, ${data}`); | |
}).catch((err) => { | |
console.log(`${FILE_ID}: create permission request failed to resolve, ${err}`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment