Created
December 18, 2017 15:32
-
-
Save diego3g/7ba2f93423f2951dd97d616823974662 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
async function fetchUser() { | |
const response = await api.get('/users/diego3g'); | |
return response; | |
} | |
async function fetchGroups() { | |
const user = await fetchUser(); | |
const response = await api.get(`/groups/${user.id}`); | |
console.log(response); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment