Skip to content

Instantly share code, notes, and snippets.

@mheiber
Created January 13, 2018 03:39
Show Gist options
  • Save mheiber/44e681f270aa609799f0a06e4193f98a to your computer and use it in GitHub Desktop.
Save mheiber/44e681f270aa609799f0a06e4193f98a to your computer and use it in GitHub Desktop.
// Architecture 2
function callApi(x, y, z) {
const request = buildRequest(x, y, z)
return fetch(request)
.then(assertStatus('callApi', x, y, z))
.then(parseResponse)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment