aboutsummaryrefslogtreecommitdiff
path: root/src/Api.js
diff options
context:
space:
mode:
authorLibravatar Renard 2019-09-16 01:22:56 -0300
committerLibravatar Renard 2019-09-16 01:22:56 -0300
commitcd9b802b71df4e2701e2311b2995fe70a9692ae4 (patch)
tree5555330f1ffb249e3b2f3d41243d393f34782ab3 /src/Api.js
parentf020559df8c31d01f678435096d5a5c91aed2527 (diff)
downloadbai-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.js20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/Api.js b/src/Api.js
index b564aa2..3999b7a 100644
--- a/src/Api.js
+++ b/src/Api.js
@@ -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;