diff options
author | Renard | 2019-09-16 01:22:56 -0300 |
---|---|---|
committer | Renard | 2019-09-16 01:22:56 -0300 |
commit | cd9b802b71df4e2701e2311b2995fe70a9692ae4 (patch) | |
tree | 5555330f1ffb249e3b2f3d41243d393f34782ab3 /src/Api.js | |
parent | f020559df8c31d01f678435096d5a5c91aed2527 (diff) | |
download | bai-client-cd9b802b71df4e2701e2311b2995fe70a9692ae4.tar.gz bai-client-cd9b802b71df4e2701e2311b2995fe70a9692ae4.tar.xz bai-client-cd9b802b71df4e2701e2311b2995fe70a9692ae4.zip |
Prettier
Diffstat (limited to 'src/Api.js')
-rw-r--r-- | src/Api.js | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -1,13 +1,15 @@ async function getBoards() { - var ret = await fetch("https://bienvenidoainternet.org/cgi/api/boards") - .then((response) => { - return response.json(); - }).then((resource) => { - //console.log(resource["boards"]); - return resource["boards"]; - }).catch(console.error) + var ret = await fetch("https://bienvenidoainternet.org/cgi/api/boards") + .then(response => { + return response.json(); + }) + .then(resource => { + //console.log(resource["boards"]); + return resource["boards"]; + }) + .catch(console.error); - return ret; + return ret; } -export default getBoards;
\ No newline at end of file +export default getBoards; |