-
-
Save mheiber/0b2448220427f5dd78fd3a41d619c510 to your computer and use it in GitHub Desktop.
Architecture 1.js
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
// Architecture 1 | |
function callApi(x, y, z) { | |
manipulate params | |
manipulate params some more ... | |
return fetch(...) | |
.then(result => { | |
if (result.status === ...) { | |
handle status stuff | |
} | |
manipulate result | |
manipulate result some more ... | |
return manipulatedResult | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment